HTML5移动Web开发
所属分类:WEB开发
开发工具:HTML
文件大小:7629KB
下载次数:6
上传日期:2017-08-30 22:55:39
上 传 者:
king_boy
说明: HTML5移动Web开发实战详解完整DEMO
(HTML5 mobile Web development practical detailed DEMO)
文件列表:
本书源代码 (0, 2016-07-30)
本书源代码\.DS_Store (15364, 2014-04-06)
本书源代码\._iphone.png (4096, 2014-04-13)
本书源代码\.jshintrc (1367, 2012-12-07)
本书源代码\app.js (809, 2012-12-25)
本书源代码\assets (0, 2016-07-30)
本书源代码\assets\.DS_Store (6148, 2014-04-05)
本书源代码\assets\img1.jpg (195149, 2013-05-21)
本书源代码\assets\img2.jpg (102990, 2013-05-21)
本书源代码\assets\img3.jpg (104812, 2013-05-21)
本书源代码\assets\img4.jpg (12571, 2013-05-21)
本书源代码\assets\img5.jpg (201766, 2013-05-21)
本书源代码\ch1 (0, 2016-07-30)
本书源代码\ch1\.DS_Store (6148, 2014-04-05)
本书源代码\ch1\logos.graffle (0, 2016-07-30)
本书源代码\ch1\logos.graffle\.DS_Store (6148, 2014-04-05)
本书源代码\ch1\logos.graffle\._.DS_Store (4096, 2014-04-13)
本书源代码\ch1\logos.graffle\data.plist (9775, 2012-11-24)
本书源代码\ch1\logos.graffle\image1.png (548, 2012-11-24)
本书源代码\ch1\logos.graffle\image2.png (509, 2012-11-24)
本书源代码\ch1\logos.graffle\image3.png (473, 2012-11-24)
本书源代码\ch1\logos.graffle\image4.png (335, 2012-11-24)
本书源代码\ch1\logos.graffle\image5.png (666, 2012-11-24)
本书源代码\ch1\logos.graffle\image6.png (861, 2012-11-24)
本书源代码\ch1\logos.graffle\image7.png (545, 2012-11-24)
本书源代码\ch1\logos.graffle\image8.png (516, 2012-11-24)
本书源代码\ch1\untitled.html (480, 2012-11-15)
本书源代码\ch1\web standard.js (635, 2012-11-16)
本书源代码\ch1\web-standard for fe.graffle (49647, 2012-11-19)
本书源代码\ch1\what's html.html (2206, 2012-11-14)
本书源代码\ch1\why semantic.html (951, 2012-11-15)
本书源代码\ch10 (0, 2016-07-30)
本书源代码\ch10\getmedia1.html (352, 2013-06-16)
本书源代码\ch10\getmedia2.html (691, 2013-06-16)
本书源代码\ch10\orientation1.html (477, 2013-06-15)
本书源代码\ch10\orientation2.html (746, 2013-06-16)
本书源代码\ch10\orientation3.html (594, 2013-06-16)
本书源代码\ch11 (0, 2016-07-30)
本书源代码\ch11\history1.html (620, 2013-06-16)
本书源代码\ch11\history2.html (541, 2013-06-16)
... ...
hjs
=====
[Hogan.js](http://twitter.github.com/hogan.js/) NPM package for [express](http://expressjs.com/) 3.x
## Installation
$ npm install -g express@3.0 hjs
## Quick Start
Install Express :
$ npm install -g express@3.0
Create express app :
$ express -H /tmp/testapp
$ cd /tmp/testapp/
& npm install
## Manual Start
Install Express :
$ npm install -g express@3.0
Create express app :
$ express /tmp/testapp
$ cd /tmp/testapp/
Edit package.json :
$ vi package.json
```package.json
"dependencies": {
"express": "3.0.0",
"hjs": "*"
}
```
$ npm install
Edit app.js :
```app.js
app.set('view engine', 'hjs');
```
Make views/index.hjs :
```index.hjs
{{ title }}
{{ title }}
```
Start server :
$ node app
## More Information
[express](http://expressjs.com/) is Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).
[Hogan.js](http://twitter.github.com/hogan.js/) is a compiler for the
[Mustache](http://mustache.github.com/) templating language. For information
on Mustache, see the [manpage](http://mustache.github.com/mustache.5.html) and
the [spec](https://github.com/mustache/spec).
近期下载者:
相关文件:
收藏者: