From f764aee4b919c28974dba7b91edac9a04172ba25 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 23 Jan 2012 14:14:16 -0800 Subject: add templates for doc generation --- .../node_modules/hogan.js/web/index.html.mustache | 139 +++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100755 docs/build/node_modules/hogan.js/web/index.html.mustache (limited to 'docs/build/node_modules/hogan.js/web/index.html.mustache') diff --git a/docs/build/node_modules/hogan.js/web/index.html.mustache b/docs/build/node_modules/hogan.js/web/index.html.mustache new file mode 100755 index 000000000..75fcbfb6c --- /dev/null +++ b/docs/build/node_modules/hogan.js/web/index.html.mustache @@ -0,0 +1,139 @@ + + + + + + + + + + Hogan.js + + + + + + + + + + + + + + + + + + + +
+
+
+
+

Hogan.js

+

JavaScript templating from Twitter.

+ View on Github +
+
+
+ + +
+

Getting started

+

+ Hogan.js is a 2.5k JS templating engine developed at Twitter. Use it as a part of your asset packager to compile templates ahead of time or include it in your browser to handle dynamic templates. +

+

+ If you're developing with Node.js, just use NPM to add the Hogan package. +

+
$ npm install hogan.js
+

+ Alternatively, drop hogan.js in your browser by adding the following script. +

+
<script src="http://twitter.github.com/hogan.js/builds/{{version}}/hogan.js"></script>
+ +
+
+ +
+
+
+
+ + +
+

Templates

+

+ Hogan.js was developed against the mustache test suite, so everything that holds true for templates as specified here, is also the case for hogan.js. +

+

+ That means you get variables, sections, lambdas, partials, filters, and everything else you've come to expect from mustache templating - only much, much faster. +

+
+
+ +
+
+
+
+ + +
+

Compiling

+

+ Use hogan.compile() to precompile your templates into vanilla JS. +

+

+ It's best to serve your templates precompiled whenever you can (rather than the raw templates), as parsing is the most time consuming operation. +

+

+

+
+
+ +
+
+
+
+ + +
+

Rendering

+

+ Once compiled, call the render() method with a context and optional partials object. +

+

+ If supplying partials, you can compile them ahead of time, or pass string templates.

+

+

+
+
+ +
+ + + + + +
+ + + + + -- cgit v1.2.3