August 2018
Intermediate to advanced
366 pages
10h 14m
English
Our simple template engine is convenient, but limited to cases where we can express the code generating our text as a set of expressions and static text.
The problem is that more advanced templates are not always possible to represent. We are restricted to plain expressions, so practically anything that cannot be represented in a lambda cannot be executed by our template engine.
While some would argue that very complex software can be written by combining multiple lambda, most people would recognize that statements lead to far more readable code.
For that reason, if you need to process very complex text, you should go to a full-featured template engine and look for something such as Jinja, Kajiki, or Mako as a solution to ...