@montyanderson/greenman
v0.0.2
Published
View manager for Mustache templates using hogan.js.
Downloads
1
Readme
greenman
View manager for Mustache templates using hogan.js.
npm install @montyanderson/greenman
const $ = require("jquery");
const Greenman = require("@montyanderson/greenman");
const dashboard = new Greenman(`
{{#user}}
<h1>Hi, {{user}}!</h1>
{{/user}}
{{^user}}
Welcome aboard!
{{/user}}
`, (rendered) => {
$(".dashboard").html(rendered);
});
dashboard.render({ user: "Monty! "});
Please go to the Github repository for more up-to-date information.