@fp7/rollup-plugin-mustache
v1.0.0
Published
A rollup plugin to use mustache templates
Downloads
6
Readme
= @fp7/rollup-plugin-mustache
A Rollup plugin to be able to include mustachetemplates and render them with https://github.com/janl/mustache.js[mustache.js].
I use it to be able to develop mustache templates with https://storybook.js.org[Storybook] and https://vitejs.dev[Vite].
== Install
[source,shell]
npm install @fp7/rollup-plugin-mustache --save-dev
== Usage
[source,javascript]
include::example/rollup.config.js[lines=3..-1]
The plugin needs to know the basedir of the templates to be able to include them for partial resolution.