[{"data":1,"prerenderedAt":661},["ShallowReactive",2],{"docs-side-nav":3,"docs-header-nav":197,"/docs/functions":270,"docs-bottom-nav":588},{"id":4,"extension":5,"items":6,"meta":194,"stem":195,"__hash__":196},"navigation/data/navigation.json","json",[7,34,46,70,104,155,170],{"name":8,"items":9},"Getting Started",[10,13,16,19,22,25,28,31],{"title":11,"path":12},"What is Maizzle?","/docs/introduction",{"title":14,"path":15},"Installation","/docs/installation",{"title":17,"path":18},"Editor Setup","/docs/editor-setup",{"title":20,"path":21},"Compatibility","/docs/compatibility",{"title":23,"path":24},"Upgrade Guide","/docs/upgrade-guide",{"title":26,"path":27},"Resources","/resources",{"title":29,"path":30},"Glossary","/glossary",{"title":32,"path":33},"CLI","/docs/cli",{"name":35,"items":36},"Concepts",[37,40,43],{"title":38,"path":39},"Environments","/docs/environments",{"title":41,"path":42},"Tailwind CSS","/docs/tailwindcss",{"title":44,"path":45},"Build Process","/docs/build-process",{"name":47,"items":48},"Configuration",[49,52,55,58,61,64,67],{"title":50,"path":51},"CSS","/docs/configuration/css",{"title":53,"path":54},"Build","/docs/configuration/build",{"title":56,"path":57},"Server","/docs/configuration/server",{"title":59,"path":60},"Components","/docs/configuration/components",{"title":62,"path":63},"Expressions","/docs/configuration/expressions",{"title":65,"path":66},"PostHTML","/docs/configuration/posthtml",{"title":68,"path":69},"PostCSS","/docs/configuration/postcss",{"name":71,"items":72},"Development",[73,76,79,81,83,86,89,92,95,98,101],{"title":74,"path":75},"Layouts","/docs/layouts",{"title":77,"path":78},"Templates","/docs/templates",{"title":59,"path":80},"/docs/components",{"title":62,"path":82},"/docs/expressions",{"title":84,"path":85},"Tags","/docs/tags",{"title":87,"path":88},"Assets","/docs/assets",{"title":90,"path":91},"Events","/docs/events",{"title":93,"path":94},"Functions","/docs/functions",{"title":96,"path":97},"Markdown","/docs/markdown",{"title":99,"path":100},"Plaintext","/docs/plaintext",{"title":102,"path":103},"API","/docs/api",{"name":105,"items":106},"Transformers",[107,110,113,116,119,122,125,128,131,134,137,140,143,146,149,152],{"title":108,"path":109},"What are Transformers?","/docs/transformers",{"title":111,"path":112},"Filters","/docs/transformers/filters",{"title":114,"path":115},"Inline CSS","/docs/transformers/inline-css",{"title":117,"path":118},"Safe Selectors","/docs/transformers/safe-class-names",{"title":120,"path":121},"CSS Purging","/docs/transformers/purge-css",{"title":123,"path":124},"Shorthand CSS","/docs/transformers/shorthand-css",{"title":126,"path":127},"Attribute To Style","/docs/transformers/attribute-to-style",{"title":129,"path":130},"Remove Attributes","/docs/transformers/remove-attributes",{"title":132,"path":133},"Add Attributes","/docs/transformers/add-attributes",{"title":135,"path":136},"Replace Strings","/docs/transformers/replace-strings",{"title":138,"path":139},"Widow Words","/docs/transformers/widows",{"title":141,"path":142},"URL Parameters","/docs/transformers/url-parameters",{"title":144,"path":145},"Base URL","/docs/transformers/base-url",{"title":147,"path":148},"Six HEX","/docs/transformers/six-hex",{"title":150,"path":151},"Prettify","/docs/transformers/prettify",{"title":153,"path":154},"Minify","/docs/transformers/minify",{"name":156,"items":157},"Starter Components",[158,161,164,167],{"title":159,"path":160},"Spacer","/docs/components/spacer",{"title":162,"path":163},"Divider","/docs/components/divider",{"title":165,"path":166},"Button","/docs/components/button",{"title":168,"path":169},"VML","/docs/components/vml",{"name":171,"items":172},"Examples",[173,176,179,182,185,188,191],{"title":174,"path":175},"Spacers","/docs/examples/spacers",{"title":177,"path":178},"Dividers","/docs/examples/dividers",{"title":180,"path":181},"Buttons","/docs/examples/buttons",{"title":183,"path":184},"Cards","/docs/examples/cards",{"title":186,"path":187},"Grids","/docs/examples/grids",{"title":189,"path":190},"Google Fonts","/docs/examples/google-fonts",{"title":192,"path":193},"Reverse Stack","/docs/examples/reverse-stack",{},"data/navigation","lXnN10nQFMOp0U7LPKSlEiRFYPoRC0dC5rgvZn8-pes",{"id":4,"extension":5,"items":198,"meta":269,"stem":195,"__hash__":196},[199,209,214,223,236,254,260],{"name":8,"items":200},[201,202,203,204,205,206,207,208],{"title":11,"path":12},{"title":14,"path":15},{"title":17,"path":18},{"title":20,"path":21},{"title":23,"path":24},{"title":26,"path":27},{"title":29,"path":30},{"title":32,"path":33},{"name":35,"items":210},[211,212,213],{"title":38,"path":39},{"title":41,"path":42},{"title":44,"path":45},{"name":47,"items":215},[216,217,218,219,220,221,222],{"title":50,"path":51},{"title":53,"path":54},{"title":56,"path":57},{"title":59,"path":60},{"title":62,"path":63},{"title":65,"path":66},{"title":68,"path":69},{"name":71,"items":224},[225,226,227,228,229,230,231,232,233,234,235],{"title":74,"path":75},{"title":77,"path":78},{"title":59,"path":80},{"title":62,"path":82},{"title":84,"path":85},{"title":87,"path":88},{"title":90,"path":91},{"title":93,"path":94},{"title":96,"path":97},{"title":99,"path":100},{"title":102,"path":103},{"name":105,"items":237},[238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253],{"title":108,"path":109},{"title":111,"path":112},{"title":114,"path":115},{"title":117,"path":118},{"title":120,"path":121},{"title":123,"path":124},{"title":126,"path":127},{"title":129,"path":130},{"title":132,"path":133},{"title":135,"path":136},{"title":138,"path":139},{"title":141,"path":142},{"title":144,"path":145},{"title":147,"path":148},{"title":150,"path":151},{"title":153,"path":154},{"name":156,"items":255},[256,257,258,259],{"title":159,"path":160},{"title":162,"path":163},{"title":165,"path":166},{"title":168,"path":169},{"name":171,"items":261},[262,263,264,265,266,267,268],{"title":174,"path":175},{"title":177,"path":178},{"title":180,"path":181},{"title":183,"path":184},{"title":186,"path":187},{"title":189,"path":190},{"title":192,"path":193},{},{"id":271,"title":93,"body":272,"description":581,"extension":582,"meta":583,"navigation":338,"path":94,"seo":584,"sitemap":585,"stem":586,"__hash__":587},"docs/docs/functions.md",{"type":273,"value":274,"toc":578},"minimark",[275,280,284,289,292,302,494,501,559,562,574],[276,277,279],"h1",{"id":278},"config-functions","Config Functions",[281,282,283],"p",{},"Maizzle is fully configured in JavaScript, so you can programmatically set config options or process and make data available to your Templates.",[285,286,288],"h2",{"id":287},"defining-functions","Defining functions",[281,290,291],{},"When defining a function, you need to make sure that:",[293,294,295,299],"ol",{},[296,297,298],"li",{},"it returns something",[296,300,301],{},"you invoke it",[303,304,310],"pre",{"className":305,"code":306,"filename":307,"language":308,"meta":309,"style":309},"language-js shiki shiki-themes tailwind-css tailwind-css","import imaginaryLib from 'imaginary-lib'\n\nconst foo = function() {\n  return 'manchu'\n}\n\nexport default {\n  foo: foo(), // invoke function defined above\n  bar: function() {\n    // do stuff and return\n    return 'baz'\n  }(), // invoke function\n  wha: () => imaginaryLib.render('implicit return 👌')\n}\n","config.js","js","",[311,312,313,333,340,363,374,380,385,396,416,430,436,445,458,489],"code",{"__ignoreMap":309},[314,315,318,322,326,330],"span",{"class":316,"line":317},"line",1,[314,319,321],{"class":320},"s8qYB","import",[314,323,325],{"class":324},"sO1gY"," imaginaryLib",[314,327,329],{"class":328},"sprQ5"," from",[314,331,332],{"class":320}," 'imaginary-lib'\n",[314,334,336],{"class":316,"line":335},2,[314,337,339],{"emptyLinePlaceholder":338},true,"\n",[314,341,343,346,350,354,357,360],{"class":316,"line":342},3,[314,344,345],{"class":320},"const",[314,347,349],{"class":348},"s2ImL"," foo",[314,351,353],{"class":352},"sVevU"," =",[314,355,356],{"class":320}," function",[314,358,359],{"class":328},"()",[314,361,362],{"class":328}," {\n",[314,364,366,370],{"class":316,"line":365},4,[314,367,369],{"class":368},"sizJ4","  return",[314,371,373],{"class":372},"sfCc6"," 'manchu'\n",[314,375,377],{"class":316,"line":376},5,[314,378,379],{"class":328},"}\n",[314,381,383],{"class":316,"line":382},6,[314,384,339],{"emptyLinePlaceholder":338},[314,386,388,391,394],{"class":316,"line":387},7,[314,389,390],{"class":368},"export",[314,392,393],{"class":368}," default",[314,395,362],{"class":328},[314,397,399,402,405,407,409,412],{"class":316,"line":398},8,[314,400,401],{"class":372},"  foo",[314,403,404],{"class":328},":",[314,406,349],{"class":348},[314,408,359],{"class":372},[314,410,411],{"class":328},",",[314,413,415],{"class":414},"smVoC"," // invoke function defined above\n",[314,417,419,422,424,426,428],{"class":316,"line":418},9,[314,420,421],{"class":348},"  bar",[314,423,404],{"class":328},[314,425,356],{"class":320},[314,427,359],{"class":328},[314,429,362],{"class":328},[314,431,433],{"class":316,"line":432},10,[314,434,435],{"class":414},"    // do stuff and return\n",[314,437,439,442],{"class":316,"line":438},11,[314,440,441],{"class":368},"    return",[314,443,444],{"class":372}," 'baz'\n",[314,446,448,451,453,455],{"class":316,"line":447},12,[314,449,450],{"class":328},"  }",[314,452,359],{"class":372},[314,454,411],{"class":328},[314,456,457],{"class":414}," // invoke function\n",[314,459,461,464,466,469,472,474,477,480,483,486],{"class":316,"line":460},13,[314,462,463],{"class":348},"  wha",[314,465,404],{"class":328},[314,467,468],{"class":328}," ()",[314,470,471],{"class":320}," =>",[314,473,325],{"class":320},[314,475,476],{"class":328},".",[314,478,479],{"class":348},"render",[314,481,482],{"class":372},"(",[314,484,485],{"class":372},"'implicit return 👌'",[314,487,488],{"class":372},")\n",[314,490,492],{"class":316,"line":491},14,[314,493,379],{"class":328},[281,495,496,497,500],{},"You would access those variables under the ",[311,498,499],{},"page"," object:",[303,502,507],{"className":503,"code":504,"filename":505,"language":506,"meta":309,"style":309},"language-hbs shiki shiki-themes tailwind-css tailwind-css","\u003Cx-main>\n  {{ page.foo }}\n  {{ page.bar }}\n  {{ page.wha }}\n\u003C/x-main>\n","emails/example.html","hbs",[311,508,509,521,532,541,550],{"__ignoreMap":309},[314,510,511,515,518],{"class":316,"line":317},[314,512,514],{"class":513},"soJEP","\u003C",[314,516,517],{"class":368},"x-main",[314,519,520],{"class":513},">\n",[314,522,523,526,529],{"class":316,"line":335},[314,524,525],{"class":372},"  {{ ",[314,527,528],{"class":320},"page.foo",[314,530,531],{"class":372}," }}\n",[314,533,534,536,539],{"class":316,"line":342},[314,535,525],{"class":372},[314,537,538],{"class":320},"page.bar",[314,540,531],{"class":372},[314,542,543,545,548],{"class":316,"line":365},[314,544,525],{"class":372},[314,546,547],{"class":320},"page.wha",[314,549,531],{"class":372},[314,551,552,555,557],{"class":316,"line":376},[314,553,554],{"class":513},"\u003C/",[314,556,517],{"class":368},[314,558,520],{"class":513},[281,560,561],{},"Result:",[303,563,568],{"className":564,"code":565,"filename":566,"language":567,"meta":309,"style":309},"language-html shiki shiki-themes tailwind-css tailwind-css","manchu baz implicit return 👌\n","build_production/example.html","html",[311,569,570],{"__ignoreMap":309},[314,571,572],{"class":316,"line":317},[314,573,565],{"class":372},[575,576,577],"style",{},"html pre.shiki code .s8qYB, html code.shiki .s8qYB{--shiki-light:#3730A3;--shiki-dark:#3730A3}html pre.shiki code .sO1gY, html code.shiki .sO1gY{--shiki-light:#2563EB;--shiki-dark:#2563EB}html pre.shiki code .sprQ5, html code.shiki .sprQ5{--shiki-light:#44403C;--shiki-dark:#44403C}html pre.shiki code .s2ImL, html code.shiki .s2ImL{--shiki-light:#00BF99;--shiki-dark:#00BF99}html pre.shiki code .sVevU, html code.shiki .sVevU{--shiki-light:#35393E;--shiki-dark:#35393E}html pre.shiki code .sizJ4, html code.shiki .sizJ4{--shiki-light:#EC4899;--shiki-dark:#EC4899}html pre.shiki code .sfCc6, html code.shiki .sfCc6{--shiki-light:#1D4ED8;--shiki-dark:#1D4ED8}html pre.shiki code .smVoC, html code.shiki .smVoC{--shiki-light:#94A3B8;--shiki-light-font-style:italic;--shiki-dark:#94A3B8;--shiki-dark-font-style:italic}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 .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 .soJEP, html code.shiki .soJEP{--shiki-light:#CBD5E1;--shiki-dark:#CBD5E1}",{"title":309,"searchDepth":335,"depth":335,"links":579},[580],{"id":287,"depth":335,"text":288},"Define functions in the config and use their output in your email templates.","md",{},{"title":93,"description":581},{"loc":94},"docs/functions","3Jnnj6B7D5GoUyfAREQgKV0duNWNg7RhY4VieuGAw-U",{"id":4,"extension":5,"items":589,"meta":660,"stem":195,"__hash__":196},[590,600,605,614,627,645,651],{"name":8,"items":591},[592,593,594,595,596,597,598,599],{"title":11,"path":12},{"title":14,"path":15},{"title":17,"path":18},{"title":20,"path":21},{"title":23,"path":24},{"title":26,"path":27},{"title":29,"path":30},{"title":32,"path":33},{"name":35,"items":601},[602,603,604],{"title":38,"path":39},{"title":41,"path":42},{"title":44,"path":45},{"name":47,"items":606},[607,608,609,610,611,612,613],{"title":50,"path":51},{"title":53,"path":54},{"title":56,"path":57},{"title":59,"path":60},{"title":62,"path":63},{"title":65,"path":66},{"title":68,"path":69},{"name":71,"items":615},[616,617,618,619,620,621,622,623,624,625,626],{"title":74,"path":75},{"title":77,"path":78},{"title":59,"path":80},{"title":62,"path":82},{"title":84,"path":85},{"title":87,"path":88},{"title":90,"path":91},{"title":93,"path":94},{"title":96,"path":97},{"title":99,"path":100},{"title":102,"path":103},{"name":105,"items":628},[629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644],{"title":108,"path":109},{"title":111,"path":112},{"title":114,"path":115},{"title":117,"path":118},{"title":120,"path":121},{"title":123,"path":124},{"title":126,"path":127},{"title":129,"path":130},{"title":132,"path":133},{"title":135,"path":136},{"title":138,"path":139},{"title":141,"path":142},{"title":144,"path":145},{"title":147,"path":148},{"title":150,"path":151},{"title":153,"path":154},{"name":156,"items":646},[647,648,649,650],{"title":159,"path":160},{"title":162,"path":163},{"title":165,"path":166},{"title":168,"path":169},{"name":171,"items":652},[653,654,655,656,657,658,659],{"title":174,"path":175},{"title":177,"path":178},{"title":180,"path":181},{"title":183,"path":184},{"title":186,"path":187},{"title":189,"path":190},{"title":192,"path":193},{},1780318594440]