I use mako, and that functionality is would be called with a 'preprocessor'.
The name for the chameleon version is expression engine and is done by
writing a custom compiler. its in their docs under `extensions`.
I'm not sure how to integrate either with the default template language
support
ignore what I just said. I looked at the chamelon docs again and I was
wrong. that section is for adding new language commands.
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To unsubscribe from this group and stop receiving emails from it,
On Thu, Jun 11, 2015 at 01:56:35PM +0100, Christian Ledermann wrote:
try the diazo middleware, iirc there is an example how to remove
whitespace and comments
I was trying to find a way of not inserting the whitespace in the first
place!
On 11 June 2015 at 13:42, Brian Sutherland
On Thu, Jun 11, 2015 at 10:59:42AM -0700, Jonathan Vanasco wrote:
I use mako, and that functionality is would be called with a 'preprocessor'.
The name for the chameleon version is expression engine and is done by
writing a custom compiler. its in their docs under `extensions`.
I'm not
We're using Chameleon quite a bit. I was wondering if there were an
option to remove whitespace between HTML elements at compile time?
Google fails me on this, but it seems that the right place is at compile
time as opposed to removing it afterward with some wsgi middleware (for
example
try the diazo middleware, iirc there is an example how to remove
whitespace and comments
On 11 June 2015 at 13:42, Brian Sutherland br...@vanguardistas.net wrote:
We're using Chameleon quite a bit. I was wondering if there were an
option to remove whitespace between HTML elements at compile
CSS/Javascript aren't much of a problem if they hit the whitespace manager
within the correct tags -- I forget the name of the processor we were
using, but it detected that and didn't alter it. If you use a library
built for this task, it's already done. Same thing with 'pre' tags. The