0

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.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
noisy
  • 6,495
  • 10
  • 50
  • 92
  • I think you mean framework (in your question title) instead of language. Python is a computer language, Django is a framework written in Python. – Paulo Scardine Jul 31 '12 at 10:27
  • @Paulo Scardine: I guess that some programming language can has this as native mechanism. Otherwise simple framework will be equally good. – noisy Jul 31 '12 at 10:35
  • I think you can call PHP a template oriented language, for that sake, although IMHO PHP demands a lot more discipline to write clean and maintainable code compared to Python. – Paulo Scardine Jul 31 '12 at 10:42

2 Answers2

3

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).
Paulo Scardine
  • 73,447
  • 11
  • 124
  • 153
1

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.

Nikolay Fominyh
  • 8,946
  • 8
  • 66
  • 102