Search code examples
pythonpreprocessortemplate-enginefreemarkerfmpp

Does anyone know of a Python equivalent of FMPP?


Does anyone know of a Python equivalent for FMPP the text file preprocessor?

Follow up: I am reading the docs and looking at the examples for the suggestions given. Just to expand. My usage of FMPP is to read in a data file (csv) and use multiple templates depending on that data to create multi page reports in html all linked to a main index.


Solution

  • Let me add Mako Fine fast tool (and it even uses ${var} syntax).

    Note: Mako, Jinja and Cheetah are textual languages (they process and generate text). I'd order them Mako > Jinja > Cheetah (in term of features and readability), but people's preferences vary.

    Kid and it's successor Genshi are HTML/XML aware attribute languages (<div py:if="variable"> ... </div> etc ). That's completely different methodology - and tools suitable for HTML or XML only.