HTML plugin for Polvo
npm install polvo-html
|2||downloads in the last week|
|29||downloads in the last month|
|Version||0.1.0 last updated 6 months ago|
|Keywords||polvo, plugin, build, system, tool, html|
With this plugin, Polvo can handle HTML source files.
You won't need to install it since it comes built in in Polvo.
Just put your
.htm files in your
input dirs and it will be
ready for use.
The same resolution algorithm presented in NodeJS will be used.
template = require './your/html/template' dom = template() console.log dom # append it to your document, i.e: # $('body').append dom
There's a built in support for partials in your html files.
Every file starting with
_ won't be compiled alone. Instead, if some other
file that doesn't start with
_ imports it, it will be compiled within it.
The import tag follows the basic SSI specification.
To include a partial in your
- Name your patial accordingly so it starts with
Include it in any of your html files by using the syntax
<!--#include file="_partial-name-here" -->
Partials are referenced relatively.