[{"data":1,"prerenderedAt":569},["ShallowReactive",2],{"docs-side-nav":3,"docs-header-nav":197,"/docs/transformers/replace-strings":270,"docs-bottom-nav":496},{"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":272,"body":273,"description":489,"extension":490,"meta":491,"navigation":437,"path":136,"seo":492,"sitemap":493,"stem":494,"__hash__":495},"docs/docs/transformers/replace-strings.md","Replace strings",{"type":274,"value":275,"toc":485},"minimark",[276,280,284,289,297,386,402,405,481],[277,278,272],"h1",{"id":279},"replace-strings",[281,282,283],"p",{},"Maizzle can batch-replace strings in your HTML email template, and you can even use regular expressions!",[285,286,288],"h2",{"id":287},"usage","Usage",[281,290,291,292,296],{},"Use the ",[293,294,295],"code",{},"replaceStrings"," option to define key-value pairs of regular expressions and strings to replace them with:",[298,299,305],"pre",{"className":300,"code":301,"filename":302,"language":303,"meta":304,"style":304},"language-js shiki shiki-themes tailwind-css tailwind-css","export default {\n  replaceStrings: {\n    'find and replace this exact string': 'with this one',\n    '\\\\s?data-src=\"\"': '', // remove empty data-src=\"\" attributes\n  }\n}\n","config.js","js","",[293,306,307,323,335,349,374,380],{"__ignoreMap":304},[308,309,312,316,319],"span",{"class":310,"line":311},"line",1,[308,313,315],{"class":314},"sizJ4","export",[308,317,318],{"class":314}," default",[308,320,322],{"class":321},"sprQ5"," {\n",[308,324,326,330,333],{"class":310,"line":325},2,[308,327,329],{"class":328},"sfCc6","  replaceStrings",[308,331,332],{"class":321},":",[308,334,322],{"class":321},[308,336,338,341,343,346],{"class":310,"line":337},3,[308,339,340],{"class":328},"    'find and replace this exact string'",[308,342,332],{"class":321},[308,344,345],{"class":328}," 'with this one'",[308,347,348],{"class":321},",\n",[308,350,352,355,359,362,364,367,370],{"class":310,"line":351},4,[308,353,354],{"class":328},"    '",[308,356,358],{"class":357},"soJEP","\\\\",[308,360,361],{"class":328},"s?data-src=\"\"'",[308,363,332],{"class":321},[308,365,366],{"class":328}," ''",[308,368,369],{"class":321},",",[308,371,373],{"class":372},"smVoC"," // remove empty data-src=\"\" attributes\n",[308,375,377],{"class":310,"line":376},5,[308,378,379],{"class":321},"  }\n",[308,381,383],{"class":310,"line":382},6,[308,384,385],{"class":321},"}\n",[387,388,390,391,393,394,397,398,401],"alert",{"type":389},"warning","\nCharacter classes need to be escaped when defining a regular expression for \n",[293,392,295],{},"\n. As you can see above, \n",[293,395,396],{},"\\s","\n becomes \n",[293,399,400],{},"\\\\s","\n.\n",[285,403,102],{"id":404},"api",[298,406,409],{"className":300,"code":407,"filename":408,"language":303,"meta":304,"style":304},"import { replaceStrings } from '@maizzle/framework'\n\nconst html = await replaceStrings('initial text', {initial: 'updated'})\n","app.js",[293,410,411,433,439],{"__ignoreMap":304},[308,412,413,417,420,424,427,430],{"class":310,"line":311},[308,414,416],{"class":415},"s8qYB","import",[308,418,419],{"class":321}," {",[308,421,423],{"class":422},"sO1gY"," replaceStrings",[308,425,426],{"class":321}," }",[308,428,429],{"class":321}," from",[308,431,432],{"class":415}," '@maizzle/framework'\n",[308,434,435],{"class":310,"line":325},[308,436,438],{"emptyLinePlaceholder":437},true,"\n",[308,440,441,444,447,451,454,457,460,463,465,467,470,472,475,478],{"class":310,"line":337},[308,442,443],{"class":415},"const",[308,445,446],{"class":328}," html ",[308,448,450],{"class":449},"sVevU","=",[308,452,453],{"class":314}," await",[308,455,423],{"class":456},"s2ImL",[308,458,459],{"class":328},"(",[308,461,462],{"class":328},"'initial text'",[308,464,369],{"class":321},[308,466,419],{"class":321},[308,468,469],{"class":328},"initial",[308,471,332],{"class":321},[308,473,474],{"class":328}," 'updated'",[308,476,477],{"class":321},"}",[308,479,480],{"class":328},")\n",[482,483,484],"style",{},"html pre.shiki code .sizJ4, html code.shiki .sizJ4{--shiki-light:#EC4899;--shiki-dark:#EC4899}html pre.shiki code .sprQ5, html code.shiki .sprQ5{--shiki-light:#44403C;--shiki-dark:#44403C}html pre.shiki code .sfCc6, html code.shiki .sfCc6{--shiki-light:#1D4ED8;--shiki-dark:#1D4ED8}html pre.shiki code .soJEP, html code.shiki .soJEP{--shiki-light:#CBD5E1;--shiki-dark:#CBD5E1}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 .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 .sVevU, html code.shiki .sVevU{--shiki-light:#35393E;--shiki-dark:#35393E}html pre.shiki code .s2ImL, html code.shiki .s2ImL{--shiki-light:#00BF99;--shiki-dark:#00BF99}",{"title":304,"searchDepth":325,"depth":325,"links":486},[487,488],{"id":287,"depth":325,"text":288},{"id":404,"depth":325,"text":102},"Programmatically replace strings in your HTML email content.","md",{},{"title":272,"description":489},{"loc":136},"docs/transformers/replace-strings","eETmEou_JG5zdLBRsMxpi0TjFwHKFE3X7fJcK0SrA0w",{"id":4,"extension":5,"items":497,"meta":568,"stem":195,"__hash__":196},[498,508,513,522,535,553,559],{"name":8,"items":499},[500,501,502,503,504,505,506,507],{"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":509},[510,511,512],{"title":38,"path":39},{"title":41,"path":42},{"title":44,"path":45},{"name":47,"items":514},[515,516,517,518,519,520,521],{"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":523},[524,525,526,527,528,529,530,531,532,533,534],{"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":536},[537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552],{"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":554},[555,556,557,558],{"title":159,"path":160},{"title":162,"path":163},{"title":165,"path":166},{"title":168,"path":169},{"name":171,"items":560},[561,562,563,564,565,566,567],{"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},{},1780318596366]