export default {
plugins: [
latte({
bin: 'php', // php or docker or your own binary path
filters: {
icon: 'latte/IconFilter.php',
nbsp: () => {}
},
functions: {},
tags: {},
globals: {
template: 'playground/templates/Layout/Main.latte'
}
})
]
}
<!-- index.html -->
<script type="application/json">
{
"template": "path/to/template.latte",
"title": "Hello world"
}
</script>