Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

renderable-html

npm Downloads

A tiny html file cache module, based on renderable & htmlize, under the MIT licence

Install

npm install renderable-html

Usage

var html;

html = require('renderable-html');

html.register(htmlFilename)

// registers a single file, if needed
html.register(htmlFilename)
    .then(function() {
        console.log('registered');
    });

// registers all files matching a glob mask, if needed
// please refer to https://www.npmjs.com/package/glob
html.register(htmlGlobMask)
    .then(function() {
        console.log('registered');
    });

html.render(htmlFilename)

// registers a single html file, if needed
// registers a renderer, based on filename & parser, if needed
// renders
html.render(htmlFilename)
    .then(function(document) {
        console.log(document.beautify());
    });

About

A tiny HTML file cache module, based on renderable & htmlize

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages