Skip to content

Flowpack/mustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flowpack.Mustache

Opinionated Mustache templates.

TL;DR

  1. composer require flowpack/mustache
  2. Inherit the Template object and set template variables as keys
prototype(Your.Site:Hello) < prototype(Flowpack.Mustache:Template) {
	planet = 'Earth'
}
  1. Place a Mustache template into Packages/Sites/Your.Site/Resources/Private/Fusion/Hello/Hello.html. E.g. Hello, {{planet}}

  2. 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

About

Opinionated Mustache template Fusion object

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages