Plim as an alternative template language
Closed this issue · 1 comments
Hello.
I'd like to suggest Plim as an alternative template language. It is built on top of Mako and is very easy to setup - one just need to:
from plim import preprocessor
and use this function as Mako preprocessor:
It supports SCSS/Stylus/CoffeeScript/Markdown/reStructuredText markups and a complete set of Mako expressions. You can find detailed information at http://plim.readthedocs.org/en/latest/index.html
Hello,
Thanks for you interest in this project. Unfortunately I have to decline this request. Pygreen is designed to be minimalist. Integrating that type of template language(?) doesn't respect that spirit. Simply using Mako allows users to generate any type of text, including stuff completely different than html (latex as example). It also allow people to have perfect control and clearly understand everything they do.
Plus a lot of people do not mind to type pure html and do not like that type of alternative syntax. Yep, that's my case, but it doesn't change the fact it wouldn't respect the will of the greater number.
If you want to use that type of syntax with PyGreen, I would recommend you to create a filter for that like the markdown filter provided by Pygreen. Another possibility would be to hack the Bottle's routes to bypass the Mako evaluation and use Plim instead.