flowpack/mustache

Last activity on 05 May 2020
  • 84
composer require flowpack/mustache

Mustache template Fusion object

0.0.1

Mustache template Fusion object

Version
0.0.1
Type
neos-package
Release Date
May 5, 2020, 5:55:34 pm
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
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).