@maizzle/framework
Version:
Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.
19 lines (18 loc) • 528 B
JavaScript
import { RenderContextKey } from "./renderContext.js";
import { inject } from "vue";
//#region src/composables/useDoctype.ts
/**
* Set the doctype for the current email template.
*
* Usage in SFC <script setup>:
* ```ts
* useDoctype('')
* ```
*/
function useDoctype(doctype) {
const ctx = inject(RenderContextKey);
if (ctx) ctx.doctype = doctype;
}
//#endregion
export { useDoctype };
//# sourceMappingURL=useDoctype.js.map