flowpack/mustache
composer require flowpack/mustache
Mustache template Fusion object
0.0.1
- Requires
- neos/flow: ^4.0|^5.0|^6.0
- mustache/mustache: ^2.0
Flowpack.Mustache
Opinionated Mustache templates.
TL;DR
composer require flowpack/mustache
- Inherit the Template object and set template variables as keys
prototype(Your.Site:Hello) < prototype(Flowpack.Mustache:Template) {
planet = 'Earth'
}
-
Place a Mustache template into
Packages/Sites/Your.Site/Resources/Private/Fusion/Hello/Hello.html
. E.g.Hello, {{planet}}
-
Alternatively you can use it as an Eel helper, e.g.
@process.params = ${Mustache.render('Hello, {{planet}}', {planet: 'Earth'})}
. Useful for replacing some placeholders in content.
TODO: object access
The same vendor provides 52 package(s).