DZone

Photo by Chunlea Ju on Unsplash.

In programming, there is often a need to generate dynamic content based on a generalized template pattern. The need can be as varied as:

  • A mobile or web application needs to send personalized communication to the customer.
  • Generating YAML configuration files based on specific dynamic configurations.
  • Dynamic personalized HTML content.

There are various technologies/tools that have evolved over time and Moustache is a template specification that has become a ubiquitous standard having support with a wide array of toolsets. Mustache is a specification for how the template file must look like. The basic idea is that you write templates adhering to the Moustache specification, that can then be rendered to create an output.

Source: DZone