What is the simplest language which support template&context mechanism?

86 Views Asked by At

I need to find the easiest way to automatically build ebooks from downloaded articles.

I want to automatically generate TOC, which will be based on HTML template.

I know that python django has template & context mechanism, however django is a little to complicated for people to which I am preparing this whole mechanism. I don't need all web-related features.

2

There are 2 best solutions below

0
On BEST ANSWER

IMHO, if you are familiar with Django:

  • if you want to build a command line application or a abstract library, look at Jinja2 template engine.
  • if you are looking for a web framework simpler than Django, look at Flask (Flask uses Jinja2 as the default template engine).
0
On

If you want to build command line application, for people that don't know django template engine - dive deeper into markdown. It has some libraries around, hope you will find what you need.