Hogan.js 互动版

安装

如果你开发Node.js,只是使用NPM添加根包。

$ npm install hogan.js

另外,通过添加下面的脚本在浏览器hogan.js。

<script src="http://twitter.github.io/hogan.js/builds/3.0.2/hogan-3.0.2.js"></script>

使用hogan.js可以下载到本地,进行引用例如:

注意:本课程主要运用到浏览器中,如何使用。