viewbridge
Version:
Shares views or templates between the server and client, making client side template pre-compilation and/or server side view pre-rendering easy.
51 lines (50 loc) • 2.4 kB
JSON
{
"name": "hjs",
"description": "Hogan.js NPM package for express 3.x",
"version": "0.0.6",
"keywords": [
"mustache",
"template",
"hogan.js",
"hogan",
"hjs",
"express",
"express-hogan"
],
"main": "index",
"homepage": "https://github.com/nullfirm/hjs.git",
"author": {
"name": "Min-su Ok",
"email": "nullfirm@gmail.com"
},
"contributors": [
{
"name": "Min-su Ok",
"email": "nullfirm@gmail.com"
},
{
"name": "lambdasakura",
"email": "lambda.sakura@gmail.com"
}
],
"repository": {
"type": "git",
"url": "https://github.com/nullfirm/hjs.git"
},
"licenses": [
{
"type": "Apache-2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"dependencies": {
"hogan.js": ">=2.0.0"
},
"readme": "hjs\n=====\n[Hogan.js](http://twitter.github.com/hogan.js/) NPM package for [express](http://expressjs.com/) 3.x\n\n## Installation\n\n $ npm install -g express@3.0 hjs\n\n## Quick Start\n\n Install Express :\n\n $ npm install -g express@3.0\n\n Create express app :\n\n $ express -H /tmp/testapp\n $ cd /tmp/testapp/\n & npm install\n\n## Manual Start\n\n Install Express :\n\n $ npm install -g express@3.0\n\n Create express app :\n\n $ express /tmp/testapp\n $ cd /tmp/testapp/\n\n Edit package.json :\n\n $ vi package.json\n\n```package.json \n \"dependencies\": {\n \"express\": \"3.0.0\",\n \"hjs\": \"*\"\n }\n```\n\n $ npm install\n\n Edit app.js :\n\n```app.js\n app.set('view engine', 'hjs');\n```\n\n Make views/index.hjs :\n\n```index.hjs\n <html>\n <head>\n <title>{{ title }}</title>\n </head>\n <body>\n <p>{{ title }}</p>\n </body>\n </html>\n```\n\n Start server :\n\n $ node app\n \n \n## More Information\n [express](http://expressjs.com/) is Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).\n\n [Hogan.js](http://twitter.github.com/hogan.js/) is a compiler for the\n[Mustache](http://mustache.github.com/) templating language. For information\non Mustache, see the [manpage](http://mustache.github.com/mustache.5.html) and\nthe [spec](https://github.com/mustache/spec).\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/nullfirm/hjs/issues"
},
"_id": "hjs@0.0.6",
"_from": "hjs@*"
}