import{r as s,p as o,q as n,w as i,z as e,R as t}from"./vendor.3d5b4206.js";const u=e("div",{class:"markdown-body"},[e("blockquote",null,[e("p",null,"Templates can be used to add custom templates for your emails, or to override the system emails used for things like resetting a password or inviting a user.")]),e("h2",{id:"1.-create-a-template-file"},[t("1. Create a template file "),e("a",{class:"header-anchor",href:"#1.-create-a-template-file"},"#")]),e("p",null,[t("Custom email templates are stored in the "),e("code",null,"templates"),t(" folder in your extensions folder. Every template is a "),e("a",{href:"https://liquidjs.com",target:"_blank",rel:"noopener noreferrer"},[e("code",null,"liquid")]),t(" file that can render whatever you want!")]),e("pre",null,[e("code",null,`/extensions/templates/<template-name>.liquid
`)]),e("p",null,[t("To replace a system template with your own, simply name it "),e("code",null,"password-reset"),t(" or "),e("code",null,"user-invitation"),t(" for the password reset or user invite emails respectively.")]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Variables"),e("p",null,[t("When overriding the default email templates, make sure to include the "),e("code",null,"url"),t(" variable somewhere. A password reset email wouldn\u2019t be that useful without the link to go reset your password!")])])],-1),h={setup(d,{expose:r}){const a={title:"Email Templates",modularExtension:!0};return r({frontmatter:a}),(p,m)=>{const l=s("DocsWrapper");return o(),n(l,{frontmatter:a},{default:i(()=>[u]),_:1})}}};export{h as default};
