← Home

Elder.js Hook: compileHtml

compileHtml : This is where Elder.js merges the html from the Svelte layout with stacks and wraps it in an <html> tag.

This hook should only be used when you need to have full control over the <html> document. Make sure if you use this to add 'elderCompileHtml' to the 'hooks.disable' array in your elder.config.js or your template will be overwritten.

Props :
perf
helpers
data
settings
htmlAttributesString
bodyAttributesString
request
headString
footerString
layoutHtml
htmlString
Mutable :
errors
htmlString
This hook is an 'advanced' hook meaning it geared towards advanced users or plugins.
Stable · Location: Page.ts
Elder.js hook Lifecycle