flowpack/mustache

Last activity 05 May 2020 129
composer require flowpack/mustache

Mustache template Fusion object

0.0.1

Version
0.0.1
Type
neos-package
Release Date
May 05, 2020 17:55
Source
git
Distribution
zip
Requires
GPL-3.0+ 82a0f3be286a12dae29cb3823decccb7c280f400

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

The content of the readme is provided by Github
The same vendor provides 48 package(s).