0.0.6 • Published 12 years ago
hjs v0.0.6
hjs
Hogan.js NPM package for express 3.x
Installation
$ npm install -g express@3.0 hjsQuick Start
Install Express :
$ npm install -g express@3.0Create express app :
$ express -H /tmp/testapp
$ cd /tmp/testapp/
& npm installManual Start
Install Express :
$ npm install -g express@3.0Create express app :
$ express /tmp/testapp
$ cd /tmp/testapp/Edit package.json :
$ vi package.json "dependencies": {
"express": "3.0.0",
"hjs": "*"
}$ npm installEdit app.js :
app.set('view engine', 'hjs');Make views/index.hjs :
<html>
<head>
<title>{{ title }}</title>
</head>
<body>
<p>{{ title }}</p>
</body>
</html>Start server :
$ node appMore Information
express is Fast, unopinionated, minimalist web framework for node.
Hogan.js is a compiler for the Mustache templating language. For information on Mustache, see the manpage and the spec.