javascript - How do I get started with Hamlet.coffee? -
i'd able , , running hamlet in node.js or browser.
where resources getting started?
from readme
using node.jsinstall command line hamlet compiler
npm install hamlet-cli compile templates , export them
node_modules/.bin/hamlet -d templates add hamlet-runtime package.json
npm install --save-dev hamlet-runtime to utilize templates in node.js style project built browserify can require them normally.
// main.js maintemplate = require("./templates/main"); document.body.appendchild(maintemplate(data)); now utilize browserify build file you'll serve on page.
browserify main.js > build.js additional resources
to started recommend getting started section of official readme
for general help or give-and-take can talk on hamlet.coffee google group
specific questions using hamlet.coffee can asked here on or on google group.
issues should opened on git repo https://github.com/dr-coffee-labs/hamlet/issues?state=open
javascript coffeescript
No comments:
Post a Comment