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 template are usually used to present data in a better format suitable for end-users. 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 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: Express.js Deep API Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0781-9_3
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0781-9_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0782-6
Online ISBN: 978-1-4842-0781-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books