[{"data":1,"prerenderedAt":1639},["ShallowReactive",2],{"navigation_docs":3,"-authoring-components":205,"-authoring-components-surround":1634},[4,31,67,111,132,163,189],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-play",{"title":26,"path":27,"stem":28,"icon":29},"Agent Skill","\u002Fgetting-started\u002Fagent-skill","1.getting-started\u002F4.agent-skill","i-lucide-sparkles",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"Authoring","i-lucide-pen-line","\u002Fauthoring","2.authoring",[37,42,47,52,57,62],{"title":38,"path":39,"stem":40,"icon":41},"Comark syntax","\u002Fauthoring\u002Fcomark-syntax","2.authoring\u002F1.comark-syntax","i-lucide-file-code",{"title":43,"path":44,"stem":45,"icon":46},"Frontmatter","\u002Fauthoring\u002Ffrontmatter","2.authoring\u002F2.frontmatter","i-lucide-heading",{"title":48,"path":49,"stem":50,"icon":51},"Components","\u002Fauthoring\u002Fcomponents","2.authoring\u002F3.components","i-lucide-blocks",{"title":53,"path":54,"stem":55,"icon":56},"Merge tags and data","\u002Fauthoring\u002Fmerge-tags-and-data","2.authoring\u002F4.merge-tags-and-data","i-lucide-braces",{"title":58,"path":59,"stem":60,"icon":61},"Actions and spans","\u002Fauthoring\u002Factions-and-spans","2.authoring\u002F5.actions-and-spans","i-lucide-mouse-pointer-click",{"title":63,"path":64,"stem":65,"icon":66},"Compile errors","\u002Fauthoring\u002Fcompile-errors","2.authoring\u002F6.compile-errors","i-lucide-circle-alert",{"title":68,"icon":69,"path":70,"stem":71,"children":72,"page":30},"Kits","i-lucide-palette","\u002Fkits","3.kits",[73,78,83,87,91,96,101,106],{"title":74,"path":75,"stem":76,"icon":77},"What is a kit","\u002Fkits\u002Fwhat-is-a-kit","3.kits\u002F1.what-is-a-kit","i-lucide-package",{"title":79,"path":80,"stem":81,"icon":82},"kit.yaml","\u002Fkits\u002Fkit-yaml","3.kits\u002F2.kit-yaml","i-lucide-file-cog",{"title":84,"path":85,"stem":86,"icon":51},"Component schemas","\u002Fkits\u002Fcomponent-schemas","3.kits\u002F3.component-schemas",{"title":88,"path":89,"stem":90,"icon":56},"Templates and views","\u002Fkits\u002Ftemplates-and-views","3.kits\u002F4.templates-and-views",{"title":92,"path":93,"stem":94,"icon":95},"Template checking","\u002Fkits\u002Ftemplate-checking","3.kits\u002F5.template-checking","i-lucide-shield-check",{"title":97,"path":98,"stem":99,"icon":100},"Go types and funcs","\u002Fkits\u002Fgo-types-and-funcs","3.kits\u002F6.go-types-and-funcs","i-lucide-code",{"title":102,"path":103,"stem":104,"icon":105},"Email-safe HTML","\u002Fkits\u002Femail-safe-html","3.kits\u002F7.email-safe-html","i-lucide-mail-check",{"title":107,"path":108,"stem":109,"icon":110},"Plain text","\u002Fkits\u002Fplain-text","3.kits\u002F8.plain-text","i-lucide-file-text",{"title":112,"icon":113,"path":114,"stem":115,"children":116,"page":30},"Sending","i-lucide-send","\u002Fsending","4.sending",[117,122,127],{"title":118,"path":119,"stem":120,"icon":121},"Profiles and config","\u002Fsending\u002Fprofiles-and-config","4.sending\u002F1.profiles-and-config","i-lucide-settings",{"title":123,"path":124,"stem":125,"icon":126},"Message and MIME","\u002Fsending\u002Fmessage-and-mime","4.sending\u002F2.message-and-mime","i-lucide-mail",{"title":128,"path":129,"stem":130,"icon":131},"SMTP","\u002Fsending\u002Fsmtp","4.sending\u002F3.smtp","i-lucide-server",{"title":133,"icon":134,"path":135,"stem":136,"children":137,"page":30},"Tooling","i-lucide-wrench","\u002Ftooling","5.tooling",[138,143,148,153,158],{"title":139,"path":140,"stem":141,"icon":142},"The lttr CLI","\u002Ftooling\u002Fcli","5.tooling\u002F1.cli","i-lucide-terminal",{"title":144,"path":145,"stem":146,"icon":147},"Studio","\u002Ftooling\u002Fstudio","5.tooling\u002F2.studio","i-lucide-eye",{"title":149,"path":150,"stem":151,"icon":152},"Editor setup","\u002Ftooling\u002Feditor-setup","5.tooling\u002F3.editor-setup","i-lucide-plug",{"title":154,"path":155,"stem":156,"icon":157},"Screenshots","\u002Ftooling\u002Fscreenshots","5.tooling\u002F4.screenshots","i-lucide-camera",{"title":159,"path":160,"stem":161,"icon":162},"Goldens and testing","\u002Ftooling\u002Fgoldens-and-testing","5.tooling\u002F5.goldens-and-testing","i-lucide-flask-conical",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":30},"Guides","i-lucide-book-open","\u002Fguides","6.guides",[169,174,179,184],{"title":170,"path":171,"stem":172,"icon":173},"Build your own kit","\u002Fguides\u002Fbuild-your-own-kit","6.guides\u002F1.build-your-own-kit","i-lucide-hammer",{"title":175,"path":176,"stem":177,"icon":178},"The Quiet kit","\u002Fguides\u002Fthe-quiet-kit","6.guides\u002F2.the-quiet-kit","i-lucide-mail-open",{"title":180,"path":181,"stem":182,"icon":183},"Migrating from v0.1","\u002Fguides\u002Fmigrating-from-v0-1","6.guides\u002F3.migrating-from-v0-1","i-lucide-arrow-right-left",{"title":185,"path":186,"stem":187,"icon":188},"Releasing","\u002Fguides\u002Freleasing","6.guides\u002F4.releasing","i-lucide-tag",{"title":190,"icon":191,"path":192,"stem":193,"children":194,"page":30},"Reference","i-lucide-library","\u002Freference","7.reference",[195,200],{"title":196,"path":197,"stem":198,"icon":199},"API reference","\u002Freference\u002Fapi-reference","7.reference\u002F1.api-reference","i-lucide-list-tree",{"title":201,"path":202,"stem":203,"icon":204},"Gallery","\u002Freference\u002Fgallery","7.reference\u002F2.gallery","i-lucide-images",{"id":206,"title":48,"body":207,"description":1627,"extension":1628,"links":1629,"meta":1630,"navigation":1631,"path":49,"seo":1632,"stem":50,"__hash__":1633},"docs\u002F2.authoring\u002F3.components.md",{"type":208,"value":209,"toc":1615},"minimark",[210,219,231,236,243,397,429,436,440,471,478,482,489,625,628,674,680,898,916,933,937,948,963,976,1090,1104,1173,1180,1184,1190,1304,1311,1315,1327,1387,1431,1447,1451,1463,1496,1503,1507,1516,1559,1564,1568,1584,1588,1592,1611],[211,212,213,214,218],"p",{},"A template's body is a stack of components, and the kit decides which components exist. Each one has a schema, ",[215,216,217],"code",{},"components\u002F\u003Cname>\u002Fcomponent.yaml",", that lists its attributes and bindings, the Markdown it takes, its children and its rules. The compiler checks every use against that schema, so a template that compiles is one the kit knows how to render.",[211,220,221,222,226,227,230],{},"This page is about ",[223,224,225],"strong",{},"using"," components. Writing a schema is covered in ",[228,229,84],"a",{"href":85},".",[232,233,235],"h2",{"id":234},"look-up-the-kits-components","Look up the kit's components",[211,237,238,239,242],{},"Plain has six components. Loose Markdown between components goes into ",[215,240,241],{},"section",", its default.",[244,245,246,265],"table",{},[247,248,249],"thead",{},[250,251,252,256,259,262],"tr",{},[253,254,255],"th",{},"Component",[253,257,258],{},"Attributes",[253,260,261],{},"Content",[253,263,264],{},"Children",[266,267,268,292,313,344,361,380],"tbody",{},[250,269,270,275,278,289],{},[271,272,273],"td",{},[215,274,241],{},[271,276,277],{},"none",[271,279,280,281,284,285,288],{},"paragraphs, ",[215,282,283],{},"#","–",[215,286,287],{},"###"," headings, lists, action rows, tables (with a header row), images; strikethrough",[271,290,291],{},"—",[250,293,294,299,309,311],{},[271,295,296],{},[215,297,298],{},"button",[271,300,301,304,305,308],{},[215,302,303],{},"href"," (url, required), ",[215,306,307],{},"label"," (text, required)",[271,310,277],{},[271,312,291],{},[250,314,315,320,340,342],{},[271,316,317],{},[215,318,319],{},"image",[271,321,322,304,325,328,329,332,333,335,336,339],{},[215,323,324],{},"src",[215,326,327],{},"alt"," (text, required), ",[215,330,331],{},"width"," (int, default 496), ",[215,334,303],{}," (url), ",[215,337,338],{},"caption"," (text)",[271,341,277],{},[271,343,291],{},[250,345,346,351,353,355],{},[271,347,348],{},[215,349,350],{},"columns",[271,352,277],{},[271,354,277],{},[271,356,357,358],{},"2 to 3 ",[215,359,360],{},":::column",[250,362,363,368,370,378],{},[271,364,365],{},[215,366,367],{},"column",[271,369,277],{},[271,371,280,372,284,375,377],{},[215,373,374],{},"##",[215,376,287],{}," headings, lists, action rows; strikethrough",[271,379,291],{},[250,381,382,387,393,395],{},[271,383,384],{},[215,385,386],{},"footer",[271,388,389,392],{},[215,390,391],{},"note"," (inline)",[271,394,277],{},[271,396,291],{},[211,398,399,400,403,404,407,408,403,411,414,415,418,419,421,422,425,426,230],{},"Quiet has 24, from ",[215,401,402],{},"statement"," and ",[215,405,406],{},"receipt"," to ",[215,409,410],{},"stories",[215,412,413],{},"signoff",", with ",[215,416,417],{},"letter"," as its default. They are catalogued, with a preview of each, in ",[228,420,175],{"href":176},". To use a kit of your own, read its ",[215,423,424],{},"components\u002F"," directory: every rule on this page comes from a key in a ",[215,427,428],{},"component.yaml",[430,431],"email-preview",{":compact":432,"kit":433,"name":434,"width":435},"true","plain","01-receipt-free",375,[232,437,439],{"id":438},"name-a-component","Name a component",[211,441,442,443,445,446,449,450,453,454,403,457,460,461,403,464,467,468,230],{},"Write a component by its name, which is its directory under ",[215,444,424],{},", or by one of its ",[215,447,448],{},"aliases",". Both are matched case-insensitively and compile to the same component. Quiet gives most of its components the design handoff's IDs as aliases, so ",[215,451,452],{},"::k1"," is ",[215,455,456],{},"::statement",[215,458,459],{},"::c1",", ",[215,462,463],{},"::c2",[215,465,466],{},"::c3"," are all ",[215,469,470],{},"::actions",[211,472,473,474,477],{},"A name the kit doesn't know is an error at the opener: ",[215,475,476],{},"unknown component \"callout\"",". Every other message names the component by its canonical name, whichever name the template used.",[232,479,481],{"id":480},"set-attributes","Set attributes",[211,483,484,485,488],{},"The schema's ",[215,486,487],{},"attrs"," give every key a type. The parser reads all values as text, and the compiler then checks each one against its type:",[244,490,491,504],{},[247,492,493],{},[250,494,495,498,501],{},[253,496,497],{},"Type",[253,499,500],{},"Write it as",[253,502,503],{},"Error when wrong",[266,505,506,518,539,554,576,595,610],{},[250,507,508,513,516],{},[271,509,510],{},[215,511,512],{},"text",[271,514,515],{},"Any text. Merge tags allowed.",[271,517,291],{},[250,519,520,525,533],{},[271,521,522],{},[215,523,524],{},"url",[271,526,527,528,532],{},"Text that evaluates to a URL. Merge tags allowed, escaped by ",[228,529,531],{"href":530},"\u002Fauthoring\u002Fmerge-tags-and-data#know-how-urls-are-escaped","the URL rules"," and checked at render.",[271,534,535,538],{},[215,536,537],{},"image: src: url \"\": empty"," (at render)",[250,540,541,546,549],{},[271,542,543],{},[215,544,545],{},"int",[271,547,548],{},"A literal integer, or a YAML integer in props.",[271,550,551],{},[215,552,553],{},"image: \"width\" must be an integer",[250,555,556,561,571],{},[271,557,558],{},[215,559,560],{},"flag",[271,562,563,564,566,567,570],{},"A bare key, ",[215,565,432],{}," or ",[215,568,569],{},"false",", or a YAML boolean in props.",[271,572,573],{},[215,574,575],{},"table: \"headless\" must be a flag",[250,577,578,583,590],{},[271,579,580],{},[215,581,582],{},"enum",[271,584,585,586,589],{},"One of the schema's ",[215,587,588],{},"values",", literally.",[271,591,592],{},[215,593,594],{},"statement: tone must be \"orange\"",[250,596,597,602,605],{},[271,598,599],{},[215,600,601],{},"list",[271,603,604],{},"A comma-separated literal, or a YAML list in props. No merge tags.",[271,606,607],{},[215,608,609],{},"progress: \"steps\" must be literal text",[250,611,612,617,620],{},[271,613,614],{},[215,615,616],{},"inline",[271,618,619],{},"One paragraph of inline Markdown. Merge tags allowed.",[271,621,622],{},[215,623,624],{},"footer: \"note\" must be one paragraph",[211,626,627],{},"Three more keys shape what a template must give:",[629,630,631,643,663],"ul",{},[632,633,634,639,640,230],"li",{},[223,635,636],{},[215,637,638],{},"required",": the key must be set and, for text, url and inline, not blank. Otherwise ",[215,641,642],{},"image: missing \"alt\"",[632,644,645,650,651,653,654,656,657,659,660,230],{},[223,646,647],{},[215,648,649],{},"required_with",": the key is required once another key is set. Quiet's ",[215,652,319],{}," takes a ",[215,655,324],{},", and then needs an ",[215,658,327],{},": ",[215,661,662],{},"image: alt is required when src is set",[632,664,665,670,671,673],{},[223,666,667],{},[215,668,669],{},"default",": the value a key has when the template leaves it out. Plain's image is 496 px wide unless ",[215,672,331],{}," says otherwise.",[211,675,676,677,679],{},"Plain's ",[215,678,319],{}," shows all three:",[681,682,688],"pre",{"className":683,"code":684,"filename":685,"language":686,"meta":687,"style":687},"language-yaml shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","# A full-width image (or narrower with width), with an optional link and\n# caption.\nname: image\nattrs:\n  src:     { type: url, required: true }\n  alt:     { type: text, required: true }\n  # Width in px. The default and the cap in html.tmpl are size.content in\n  # kit.yaml (templates cannot compare an int with a token); change all\n  # three together.\n  width:   { type: int, default: \"496\" }\n  href:    { type: url }\n  caption: { type: text }\ncontent: none\nspacing:\n  top: 0\n  bottom: size.gap\n","plain\u002Fcomponents\u002Fimage\u002Fcomponent.yaml","yaml","",[215,689,690,699,705,719,727,755,779,785,791,797,823,840,857,868,876,887],{"__ignoreMap":687},[691,692,695],"span",{"class":693,"line":694},"line",1,[691,696,698],{"class":697},"sBq4M","# A full-width image (or narrower with width), with an optional link and\n",[691,700,702],{"class":693,"line":701},2,[691,703,704],{"class":697},"# caption.\n",[691,706,708,712,715],{"class":693,"line":707},3,[691,709,711],{"class":710},"s71pN","name",[691,713,659],{"class":714},"sihDN",[691,716,718],{"class":717},"sRBGO","image\n",[691,720,722,724],{"class":693,"line":721},4,[691,723,487],{"class":710},[691,725,726],{"class":714},":\n",[691,728,730,733,736,739,741,743,745,747,749,752],{"class":693,"line":729},5,[691,731,732],{"class":710},"  src",[691,734,735],{"class":714},":     { ",[691,737,738],{"class":710},"type",[691,740,659],{"class":714},[691,742,524],{"class":717},[691,744,460],{"class":714},[691,746,638],{"class":710},[691,748,659],{"class":714},[691,750,432],{"class":751},"sTl1q",[691,753,754],{"class":714}," }\n",[691,756,758,761,763,765,767,769,771,773,775,777],{"class":693,"line":757},6,[691,759,760],{"class":710},"  alt",[691,762,735],{"class":714},[691,764,738],{"class":710},[691,766,659],{"class":714},[691,768,512],{"class":717},[691,770,460],{"class":714},[691,772,638],{"class":710},[691,774,659],{"class":714},[691,776,432],{"class":751},[691,778,754],{"class":714},[691,780,782],{"class":693,"line":781},7,[691,783,784],{"class":697},"  # Width in px. The default and the cap in html.tmpl are size.content in\n",[691,786,788],{"class":693,"line":787},8,[691,789,790],{"class":697},"  # kit.yaml (templates cannot compare an int with a token); change all\n",[691,792,794],{"class":693,"line":793},9,[691,795,796],{"class":697},"  # three together.\n",[691,798,800,803,806,808,810,812,814,816,818,821],{"class":693,"line":799},10,[691,801,802],{"class":710},"  width",[691,804,805],{"class":714},":   { ",[691,807,738],{"class":710},[691,809,659],{"class":714},[691,811,545],{"class":717},[691,813,460],{"class":714},[691,815,669],{"class":710},[691,817,659],{"class":714},[691,819,820],{"class":717},"\"496\"",[691,822,754],{"class":714},[691,824,826,829,832,834,836,838],{"class":693,"line":825},11,[691,827,828],{"class":710},"  href",[691,830,831],{"class":714},":    { ",[691,833,738],{"class":710},[691,835,659],{"class":714},[691,837,524],{"class":717},[691,839,754],{"class":714},[691,841,843,846,849,851,853,855],{"class":693,"line":842},12,[691,844,845],{"class":710},"  caption",[691,847,848],{"class":714},": { ",[691,850,738],{"class":710},[691,852,659],{"class":714},[691,854,512],{"class":717},[691,856,754],{"class":714},[691,858,860,863,865],{"class":693,"line":859},13,[691,861,862],{"class":710},"content",[691,864,659],{"class":714},[691,866,867],{"class":717},"none\n",[691,869,871,874],{"class":693,"line":870},14,[691,872,873],{"class":710},"spacing",[691,875,726],{"class":714},[691,877,879,882,884],{"class":693,"line":878},15,[691,880,881],{"class":710},"  top",[691,883,659],{"class":714},[691,885,886],{"class":751},"0\n",[691,888,890,893,895],{"class":693,"line":889},16,[691,891,892],{"class":710},"  bottom",[691,894,659],{"class":714},[691,896,897],{"class":717},"size.gap\n",[681,899,904],{"className":900,"code":901,"filename":902,"language":903,"meta":687,"style":687},"language-markdown shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","::image{src=\"{{cover_url}}\" alt=\"An empty workspace\" width=\"320\" href=\"https:\u002F\u002Fexample.com\u002Fprojects\"}\n::\n","templates\u002Fwelcome.md","markdown",[215,905,906,911],{"__ignoreMap":687},[691,907,908],{"class":693,"line":694},[691,909,910],{"class":714},"::image{src=\"{{cover_url}}\" alt=\"An empty workspace\" width=\"320\" href=\"https:\u002F\u002Fexample.com\u002Fprojects\"}\n",[691,912,913],{"class":693,"line":701},[691,914,915],{"class":714},"::\n",[211,917,918,919,922,923,453,926,929,930,230],{},"Any key the schema doesn't declare, an ",[215,920,921],{},"#id"," or a ",[215,924,925],{},".class",[215,927,928],{},"button: unknown attribute \"target\"",". Attributes and props are one set of keys, so the same key in both is ",[215,931,932],{},"button: \"label\" set twice",[232,934,936],{"id":935},"pass-bindings","Pass bindings",[211,938,939,940,943,944,947],{},"Some components need a structured value rather than a line of text: an invoice, a receipt, a list of products. The schema declares these under ",[215,941,942],{},"bindings",", each with a Go type the kit registers, and the template passes one with ",[215,945,946],{},":key=\"path\"",":",[681,949,952],{"className":900,"code":950,"filename":951,"language":903,"meta":687,"style":687},"::invoice{:invoice=\"invoice\"}\n::\n","tutorial\u002Ftemplates\u002Finvoice.md#L12-L13",[215,953,954,959],{"__ignoreMap":687},[691,955,956],{"class":693,"line":694},[691,957,958],{"class":714},"::invoice{:invoice=\"invoice\"}\n",[691,960,961],{"class":693,"line":701},[691,962,915],{"class":714},[211,964,965,966,968,969,972,973,947],{},"That binding comes from the kit built in ",[228,967,170],{"href":171},". Its ",[215,970,971],{},"invoice"," component binds the Go type ",[215,974,975],{},"Invoice",[681,977,980],{"className":683,"code":978,"filename":979,"language":686,"meta":687,"style":687},"# An invoice: the bound Invoice's lines, then its total. A template\n# passes the invoice with a binding: ::invoice{:invoice=\"invoice\"}.\nname: invoice\nattrs:\n  title: { type: text, default: Invoice }\nbindings:\n  invoice: { type: Invoice, required: true }\ncontent: none\nspacing:\n  top: size.block\n  bottom: size.gap\n","tutorial\u002Fkit\u002Fcomponents\u002Finvoice\u002Fcomponent.yaml",[215,981,982,987,992,1001,1007,1030,1036,1059,1067,1073,1082],{"__ignoreMap":687},[691,983,984],{"class":693,"line":694},[691,985,986],{"class":697},"# An invoice: the bound Invoice's lines, then its total. A template\n",[691,988,989],{"class":693,"line":701},[691,990,991],{"class":697},"# passes the invoice with a binding: ::invoice{:invoice=\"invoice\"}.\n",[691,993,994,996,998],{"class":693,"line":707},[691,995,711],{"class":710},[691,997,659],{"class":714},[691,999,1000],{"class":717},"invoice\n",[691,1002,1003,1005],{"class":693,"line":721},[691,1004,487],{"class":710},[691,1006,726],{"class":714},[691,1008,1009,1012,1014,1016,1018,1020,1022,1024,1026,1028],{"class":693,"line":729},[691,1010,1011],{"class":710},"  title",[691,1013,848],{"class":714},[691,1015,738],{"class":710},[691,1017,659],{"class":714},[691,1019,512],{"class":717},[691,1021,460],{"class":714},[691,1023,669],{"class":710},[691,1025,659],{"class":714},[691,1027,975],{"class":717},[691,1029,754],{"class":714},[691,1031,1032,1034],{"class":693,"line":757},[691,1033,942],{"class":710},[691,1035,726],{"class":714},[691,1037,1038,1041,1043,1045,1047,1049,1051,1053,1055,1057],{"class":693,"line":781},[691,1039,1040],{"class":710},"  invoice",[691,1042,848],{"class":714},[691,1044,738],{"class":710},[691,1046,659],{"class":714},[691,1048,975],{"class":717},[691,1050,460],{"class":714},[691,1052,638],{"class":710},[691,1054,659],{"class":714},[691,1056,432],{"class":751},[691,1058,754],{"class":714},[691,1060,1061,1063,1065],{"class":693,"line":787},[691,1062,862],{"class":710},[691,1064,659],{"class":714},[691,1066,867],{"class":717},[691,1068,1069,1071],{"class":693,"line":793},[691,1070,873],{"class":710},[691,1072,726],{"class":714},[691,1074,1075,1077,1079],{"class":693,"line":799},[691,1076,881],{"class":710},[691,1078,659],{"class":714},[691,1080,1081],{"class":717},"size.block\n",[691,1083,1084,1086,1088],{"class":693,"line":825},[691,1085,892],{"class":710},[691,1087,659],{"class":714},[691,1089,897],{"class":717},[211,1091,1092,1093,1096,1097,1099,1100,1103],{},"A binding resolves with the same path rules as a merge tag, but it must resolve to ",[223,1094,1095],{},"exactly"," the registered type. The errors, from Quiet's ",[215,1098,406],{},", which binds a ",[215,1101,1102],{},"quiet.Receipt",", and one from Plain:",[244,1105,1106,1116],{},[247,1107,1108],{},[250,1109,1110,1113],{},[253,1111,1112],{},"Template",[253,1114,1115],{},"Error",[266,1117,1118,1130,1143,1160],{},[250,1119,1120,1125],{},[271,1121,1122],{},[215,1123,1124],{},"::receipt{:order=\"order_id\"}",[271,1126,1127],{},[215,1128,1129],{},"receipt: :order is string, want quiet.Receipt",[250,1131,1132,1138],{},[271,1133,1134,1137],{},[215,1135,1136],{},"::receipt"," with no binding",[271,1139,1140],{},[215,1141,1142],{},"receipt: missing binding \":order\"",[250,1144,1145,1155],{},[271,1146,1147,1150,1151,1154],{},[215,1148,1149],{},":order"," with ",[215,1152,1153],{},"map[string]any"," data",[271,1156,1157],{},[215,1158,1159],{},"receipt: :order is untyped data (order), want quiet.Receipt",[250,1161,1162,1168],{},[271,1163,1164,1167],{},[215,1165,1166],{},"::button{:label=\"first_name\"}"," (Plain)",[271,1169,1170],{},[215,1171,1172],{},"button: unknown attribute \":label\" (did you mean label?)",[211,1174,1175,1176,230],{},"Plain binds no Go types, so its components take no bindings. More on paths and types in ",[228,1177,1179],{"href":1178},"\u002Fauthoring\u002Fmerge-tags-and-data#bind-structured-values","Bind structured values",[232,1181,1183],{"id":1182},"write-the-content","Write the content",[211,1185,1186,1187,1189],{},"Between the opener and the closer goes the component's content, and the schema's ",[215,1188,862],{}," says what it may be.",[629,1191,1192,1203,1240,1251,1272,1286],{},[632,1193,1194,1199,1200,230],{},[223,1195,1196],{},[215,1197,1198],{},"content: none"," takes nothing: ",[215,1201,1202],{},"footer: content is not allowed",[632,1204,1205,1210,1211,460,1214,460,1217,460,1219,1222,1223,403,1225,1227,1228,1231,1232,1235,1236,1239],{},[223,1206,1207],{},[215,1208,1209],{},"allow"," lists the Markdown blocks it takes, from ",[215,1212,1213],{},"paragraph",[215,1215,1216],{},"heading",[215,1218,601],{},[215,1220,1221],{},"actions"," (an action row), ",[215,1224,244],{},[215,1226,319],{},". Anything else is ",[215,1229,1230],{},"\u003Ccomponent>: \u003Cblock> is not allowed here",", as in ",[215,1233,1234],{},"notice: action row is not allowed here",". Blockquotes, code blocks and ",[215,1237,1238],{},"---"," rules are never allowed.",[632,1241,1242,1247,1248,230],{},[223,1243,1244],{},[215,1245,1246],{},"headings"," limits the levels: ",[215,1249,1250],{},"column: h1 is not allowed here",[632,1252,1253,1256,1257,460,1260,1263,1264,1267,1268,1271],{},[223,1254,1255],{},"Counts"," bound the paragraphs, the blocks or a table's columns: ",[215,1258,1259],{},"notice: 1 to 2 paragraphs, got 3",[215,1261,1262],{},"breakdown: table must have at most 2 columns, has 3"," (a table rejected this way leaves Quiet's ",[215,1265,1266],{},"breakdown"," empty, so it also prints ",[215,1269,1270],{},"breakdown: expected a table",").",[632,1273,1274,1279,1280,1282,1283,1271],{},[223,1275,1276],{},[215,1277,1278],{},"max_kind"," caps one kind of block: Quiet's ",[215,1281,402],{}," takes one heading (",[215,1284,1285],{},"statement: at most one heading",[632,1287,1288,1293,1294,1297,1298,1301,1302,1271],{},[223,1289,1290],{},[215,1291,1292],{},"sequence"," fixes the blocks in order: Quiet's ",[215,1295,1296],{},"offer"," is a heading then a paragraph (",[215,1299,1300],{},"offer: expected a heading then a paragraph","), and its table components are exactly one table (",[215,1303,1270],{},[211,1305,1306,1307,230],{},"A component's content is also where its inline opt-ins apply: strikethrough, link titles and images standing alone in a paragraph. See ",[228,1308,1310],{"href":1309},"\u002Fauthoring\u002Fcomark-syntax#know-what-is-rejected","Know what is rejected",[232,1312,1314],{"id":1313},"nest-children","Nest children",[211,1316,1317,1318,1321,1322,1324,1325,947],{},"A component with ",[215,1319,1320],{},"children"," in its schema holds other components, written with one more colon. Plain's ",[215,1323,350],{}," takes two or three ",[215,1326,360],{},[681,1328,1331],{"className":900,"code":1329,"filename":1330,"language":903,"meta":687,"style":687},"::columns\n:::column\n### Billed to\n{{customer.name}}, {{customer.email}}\n:::\n\n:::column\n### Payment\n{{card}}\n:::\n::\n","plain\u002Fsamples\u002Freceipt-free.md#L19-L29",[215,1332,1333,1338,1343,1349,1354,1359,1365,1369,1374,1379,1383],{"__ignoreMap":687},[691,1334,1335],{"class":693,"line":694},[691,1336,1337],{"class":714},"::columns\n",[691,1339,1340],{"class":693,"line":701},[691,1341,1342],{"class":714},":::column\n",[691,1344,1345],{"class":693,"line":707},[691,1346,1348],{"class":1347},"su3Io","### Billed to\n",[691,1350,1351],{"class":693,"line":721},[691,1352,1353],{"class":714},"{{customer.name}}, {{customer.email}}\n",[691,1355,1356],{"class":693,"line":729},[691,1357,1358],{"class":714},":::\n",[691,1360,1361],{"class":693,"line":757},[691,1362,1364],{"emptyLinePlaceholder":1363},true,"\n",[691,1366,1367],{"class":693,"line":781},[691,1368,1342],{"class":714},[691,1370,1371],{"class":693,"line":787},[691,1372,1373],{"class":1347},"### Payment\n",[691,1375,1376],{"class":693,"line":793},[691,1377,1378],{"class":714},"{{card}}\n",[691,1380,1381],{"class":693,"line":799},[691,1382,1358],{"class":714},[691,1384,1385],{"class":693,"line":825},[691,1386,915],{"class":714},[629,1388,1389,1396,1402,1423],{},[632,1390,1391,1392,1395],{},"Only the named child is allowed inside: ",[215,1393,1394],{},"columns: only component column is allowed here",", also for loose Markdown between the children.",[632,1397,1398,1399,230],{},"The count is checked: ",[215,1400,1401],{},"columns: 2 to 3 column components, got 1",[632,1403,1404,1405,1407,1408,1411,1412,1411,1414,1417,1418,453,1420,230],{},"A child may hold children of its own when its schema declares ",[215,1406,1320],{},", one more colon each level down (",[215,1409,1410],{},"::::card"," inside ",[215,1413,360],{},[215,1415,1416],{},"::columns","), at any depth up to the parser's 32. Each level is checked against its own schema, and an error inside a child names that child and its own line. A component inside any component without ",[215,1419,1320],{},[215,1421,1422],{},"column: component columns is not allowed here",[632,1424,1425,1426,1428,1429,230],{},"A child's own schema applies to it as usual. Plain's ",[215,1427,367],{}," can also stand on its own at the top level, where it renders like a ",[215,1430,241],{},[211,1432,1433,1434,403,1436,1439,1440,403,1443,1446],{},"Quiet's ",[215,1435,410],{},[215,1437,1438],{},"products"," hold ",[215,1441,1442],{},":::story",[215,1444,1445],{},":::product"," tiles the same way.",[232,1448,1450],{"id":1449},"follow-the-order-rules","Follow the order rules",[211,1452,1453,1454,1457,1458,1460,1461,947],{},"A schema's ",[215,1455,1456],{},"must_follow"," names the components this one must come straight after. Quiet's ",[215,1459,319],{}," is a band under a hero, so it must directly follow a ",[215,1462,402],{},[681,1464,1467],{"className":900,"code":1465,"filename":1466,"language":903,"meta":687,"style":687},"::statement{eyebrow=\"Field notes\" tone=\"orange\"}\n# The first frost\n::\n\n::image{src=\"{{hero_image}}\" alt=\"An orchard in the first frost\" tone=\"warm\"}\n::\n","templates\u002Ffield-notes.md",[215,1468,1469,1474,1479,1483,1487,1492],{"__ignoreMap":687},[691,1470,1471],{"class":693,"line":694},[691,1472,1473],{"class":714},"::statement{eyebrow=\"Field notes\" tone=\"orange\"}\n",[691,1475,1476],{"class":693,"line":701},[691,1477,1478],{"class":1347},"# The first frost\n",[691,1480,1481],{"class":693,"line":707},[691,1482,915],{"class":714},[691,1484,1485],{"class":693,"line":721},[691,1486,1364],{"emptyLinePlaceholder":1363},[691,1488,1489],{"class":693,"line":729},[691,1490,1491],{"class":714},"::image{src=\"{{hero_image}}\" alt=\"An orchard in the first frost\" tone=\"warm\"}\n",[691,1493,1494],{"class":693,"line":757},[691,1495,915],{"class":714},[211,1497,1498,1499,1502],{},"Anywhere else it is ",[215,1500,1501],{},"image must directly follow a statement",". The rule applies to siblings: top-level components, or the children of one component.",[232,1504,1506],{"id":1505},"stay-within-the-limits","Stay within the limits",[211,1508,1509,403,1512,1515],{},[215,1510,1511],{},":button",[215,1513,1514],{},":link"," are built into the engine, but the kit can cap them:",[629,1517,1518,1536],{},[632,1519,1520,460,1523,1526,1527,1529,1530,1532,1533,230],{},[223,1521,1522],{},"Template-wide",[215,1524,1525],{},"limits"," in ",[215,1528,79],{},". Quiet allows one ",[215,1531,1511],{}," per template: a second is ",[215,1534,1535],{},"more than one :button in the template",[632,1537,1538,460,1541,1526,1543,1545,1546,1548,1549,1551,1552,1555,1556,1558],{},[223,1539,1540],{},"Per component",[215,1542,1525],{},[215,1544,428],{},". Quiet's ",[215,1547,417],{}," takes no ",[215,1550,1511],{}," at all (",[215,1553,1554],{},"letter: :button is not allowed here","), so loose Markdown can only hold ",[215,1557,1514],{},"s.",[211,1560,1561,1562,230],{},"Plain sets no limits. See ",[228,1563,58],{"href":59},[232,1565,1567],{"id":1566},"leave-spacing-to-the-kit","Leave spacing to the kit",[211,1569,1570,1571,1573,1574,1576,1577,1580,1581,1583],{},"A component's padding comes from its schema's ",[215,1572,873],{},", and can depend on its neighbours: Quiet's ",[215,1575,406],{}," sits closer under a ",[215,1578,1579],{},"figure"," than under a ",[215,1582,402],{},". A template has no way to set margins, and doesn't need one: reorder the components and the spacing follows.",[430,1585],{":compact":432,"kit":1586,"name":1587,"width":435},"quiet","01-order.out_for_delivery",[232,1589,1591],{"id":1590},"next-steps","Next steps",[629,1593,1594,1599,1606],{},[632,1595,1596,1598],{},[228,1597,53],{"href":54}," for the paths in attributes and bindings.",[632,1600,1601,1603,1604,230],{},[228,1602,84],{"href":85}," for writing ",[215,1605,428],{},[632,1607,1608,1610],{},[228,1609,175],{"href":176}," for Quiet's 24 components.",[1612,1613,1614],"style",{},"html pre.shiki code .sihDN, html code.shiki .sihDN{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#E1E4E8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .su3Io, html code.shiki .su3Io{--shiki-light:#023B95;--shiki-light-font-weight:bold;--shiki-default:#023B95;--shiki-default-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold}html pre.shiki code .sBq4M, html code.shiki .sBq4M{--shiki-light:#66707B;--shiki-default:#66707B;--shiki-dark:#6A737D}html pre.shiki code .s71pN, html code.shiki .s71pN{--shiki-light:#024C1A;--shiki-default:#024C1A;--shiki-dark:#85E89D}html pre.shiki code .sRBGO, html code.shiki .sRBGO{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#9ECBFF}html pre.shiki code .sTl1q, html code.shiki .sTl1q{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#79B8FF}",{"title":687,"searchDepth":701,"depth":701,"links":1616},[1617,1618,1619,1620,1621,1622,1623,1624,1625,1626],{"id":234,"depth":701,"text":235},{"id":438,"depth":701,"text":439},{"id":480,"depth":701,"text":481},{"id":935,"depth":701,"text":936},{"id":1182,"depth":701,"text":1183},{"id":1313,"depth":701,"text":1314},{"id":1449,"depth":701,"text":1450},{"id":1505,"depth":701,"text":1506},{"id":1566,"depth":701,"text":1567},{"id":1590,"depth":701,"text":1591},"How a template uses a kit's components — names and aliases, typed attributes, bindings, content, children, ordering rules and limits.","md",null,{},{"icon":51},{"title":48,"description":1627},"uuqcqg6C-aaBOjajnS0irADfaRr41elaBYB7ryQkJQM",[1635,1637],{"title":43,"path":44,"stem":45,"description":1636,"icon":46,"children":-1},"The YAML header of a template — the five core keys, the keys a kit adds, their types and when each one is checked.",{"title":53,"path":54,"stem":55,"description":1638,"icon":56,"children":-1},"How a template reaches into your data — typed structs checked at compile time, untyped maps read at render, fallbacks, bindings and URL escaping.",1790467463503]