flowpack/mustache

Last activity 05 May 2020 207
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
  • neos/flow: ^4.0|^5.0|^6.0
  • mustache/mustache: ^2.0
GPL-3.0+ 82a0f3be286a12dae29cb3823decccb7c280f400

Readme excerpt

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
Read more
The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 52 package(s).