Build a set of fluid content element templates with configuration data from a json file via a mustache template file.
- Clone this repository
- Install Mustang: https://github.com/stomita/mustang –
npm install -g mustang
(assuming you have nodejs already installed) - copy
modules.example.json
tomodules.json
- edit
modules.json
to suit your needs- The syntax is plain json
- each array element generates one fluid template file
fields
contain one or more fields. All currently supported fields appear inmodules.example.json
, so I suggest you go from there- also note the special
section
thing, which can containfields
as well!
- run in you terminal:
./run.sh
– this will generate (inout/
):- a fluid template .html file for each array key in the modules file
- a
locallang.txt
file filled with with titles/descriptions ready to be copied over toResources/Private/Languages/locallang.xlf
of your template extension
- enjoy the rest of your day! 🤘