On Tuesday 02 February 2010 01:09:23 Leo Soto M. wrote:
> On Mon, Feb 1, 2010 at 11:00 AM, Luke Plant <[email protected]>
>  wrote: [...]
> 
> > Changing that assumption in an elegant way would require changing
> > *everything* to use a markup agnostic output tree, which you
> > would then render with different 'writers'.  (I'm thinking
> > something like the way Pandoc and docutils work).
> 
> If anyone wants to play with that idea, I suggest to look at the
>  HAML syntax: <http://haml-lang.com/tutorial.html>. The way it uses
>  indentation for closing tags (just like Python) and CSS syntax for
>  making it concise is very clever.

Another possibility is the way that Genshi does it.  You write an XML 
template, and have the choice to render XML style or HTML style.  
Presumably this isn't an (easy) option for us though, because we don't 
have an XML based templating system.  For us to do the same just 
amounts to post-processing.

Luke

-- 
"In your presence there is fullness of joy; at your right hand are 
pleasures forevermore" Psalm 16:11

Luke Plant || http://lukeplant.me.uk/

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to