Questions tagged [template-languages]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
3 answers

How do different template languages handle parsing?

In template languages, most of the content is written out as-is, with only certain special markers for expression evaluation or flow control. In my attempts to develop a language of this style, I've ...
kouta-kun's user avatar
  • 1,349
21 votes
4 answers

Why do many template languages have `for-else` statements?

I've noticed that many template engines have a mechanism for detecting that a loop is not occurring. Although their names and syntax vary, they all have this similar structure. For example: Jinja <...
Aster's user avatar
  • 2,688