https://github.com/frctl/mustache
Use Mustache templates with Fractal.
https://github.com/frctl/mustache
Last synced: 3 months ago
JSON representation
Use Mustache templates with Fractal.
- Host: GitHub
- URL: https://github.com/frctl/mustache
- Owner: frctl
- Created: 2016-02-14T20:23:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T17:22:01.000Z (almost 9 years ago)
- Last Synced: 2024-10-29T20:24:45.971Z (7 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-fractal - Mustache
README
# Mustache Adapter
Use Mustache templates with [Fractal](http://github.com/frctl/fractal).
## Usage
Install via NPM:
```bash
npm i @frctl/mustache --save
```Then configure your Fractal instance:
```js
fractal.components.engine('@frctl/mustache'); // register the mustache engine adapter for your components
fractal.components.set('ext', '.mustache'); // look for files with a .mustache file extension
```