@frctl/mustache-adapter
v0.2.2
Published
Use Mustache templates with Fractal.
Downloads
27
Keywords
Readme
Mustache Adapter
Use Mustache templates with Fractal.
Usage
Install via NPM:
npm i @frctl/mustache-adapter --save
Then add configuration details into your fractal.js file:
const fractal = require('@frctl/fractal');
fractal.engine('mustache', '@frctl/mustache-adapter'); // register the mustache engine adapter
fractal.set('components.engine', 'mustache'); // use the mustache handler
fractal.set('components.ext', '.mustache'); // look for files with a .mustache file extension