Questions tagged [templating-engine]

A templating engine processes templates in a given language, often binding them to a data source, in order to produce an output document.

templating-engine is a software designed for processing web templates, filling them with data and producing web documents.

See wikipedia article.

Also see:

115 questions
4
votes
2 answers

Why do we use server-side templating engines for Node?

For example I see Node.js a lot of peopple have been mentioning using jade or swig. I am building a Node.js app that will use RESTful interface for communicating with the client. I want to be able to send and receive updates. A lot of tutorials I've…
4
votes
2 answers

How do I use an IF statement in a loop with StringTemplate

This displays nothing: $Articles:{ $if(i!=1)$ display in between articles $endif$ $it.Text } This displays as expected $Articles:{ display in between articles …
Stephen Lacy
3
votes
1 answer

Twig PHP: Incrementing and Subtracting A Value In A Foreach

I am working on a project that loops 100 times with repeating data. Every 8th post I am inserting an advertisement block, because I am using the index value to number each block output I need to subtract from a variable because the ad block isn't…
Dwayne Charrington
  • 5,822
  • 7
  • 38
  • 62
3
votes
1 answer

Javascript templating library that infers used variables and dependencies

Is there a Javascript templating library that automatically infers the variables used in the template and the possible dependencies among them? If I for example have a template that looks like this (Handlebars syntax):