Abstract
Template engines are libraries that allow us to use different template languages (EJS, Handlebars, Jade, etc.). But what is a template language? Template language is a special set of instructions (syntax and control structures) that instructs the engine how to process data. The language is specific to a particular template engine. The instructions in the templateare usually used to present data in a better format suitable for end-users. In in the case of web apps such final representation format is HTML. So basically, we have some data (JSON or JavaScript/Node.js objects), and templates (EJS, Handlebars, Jade, etc.). When they are combined, we get the output, which is a good old HTML.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Azat Mardan
About this chapter
Cite this chapter
Mardan, A. (2014). Template Engines and Consolidate.js. In: Pro Express.js. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0037-7_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0037-7_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0038-4
Online ISBN: 978-1-4842-0037-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books