Mallmotorer
Mallmotorer, or template engines, are software components used to generate text output by merging a template with a data model. The template contains placeholders and rules that determine how data should be presented. At render time the engine replaces placeholders with actual values and evaluates constructs such as loops and conditionals to produce a final document, page, or email.
They can operate on the server to produce web pages or documents, or on the client to
Two broad approaches exist. Logic-less engines limit what can be expressed in templates to data substitution
Popular examples include Mustache (logic-less), Twig, Jinja2, Liquid, ERB, and FreeMarker. They are used in web