Skip to content

Examples for Chapter 6 - Templating with JST, ECO and Handlebars and Grunt

Notifications You must be signed in to change notification settings

pipefishbook/ch_6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This chapter aims to provide an overview about advanced view templates with JavaScript.

Templates provide a special syntax to easily render variables together with HTML and text. For simple templates, you can best use the JST or ECO formats as shown in the "templates" examples.

For advanced view templates, the situation is a bit different. This means, you can call functions (or "helpers") inside a template to render variables in a certain form.

This is shown in the "grunt_handlebars" example. Grunt provides some syntactic sugar to control multiple processes. This can be helpful to e.g. call browserify, then handlebars and update a server process to display the new views in the browser.

About

Examples for Chapter 6 - Templating with JST, ECO and Handlebars and Grunt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages