Skip to main content

Template Engines and Consolidate.js

  • Chapter
  • First Online:
Pro Express.js
  • 1674 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics