[google-appengine] Re: Re-using Template Snippets - Where's my {%with%}?

2008-08-30 Thread Davide Rognoni
...because is 100% pure Python code :-) On Aug 29, 11:59 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > PyOoHtml works! > > On Jul 28, 1:12 am, Nick Retallack <[EMAIL PROTECTED]> wrote: > > > In Django, I was able to re-use template snippets like this: > > > {% with your_things as those_things %

[google-appengine] Re: Re-using Template Snippets - Where's my {%with%}?

2008-08-29 Thread Davide Rognoni
PyOoHtml works! On Jul 28, 1:12 am, Nick Retallack <[EMAIL PROTECTED]> wrote: > In Django, I was able to re-use template snippets like this: > > {% with your_things as those_things %} > {% include 'things_gallery.html' %} {# displays those_things #} > {% endwith %} > > {% with my_things as those_

[google-appengine] Re: Re-using Template Snippets - Where's my {%with%}?

2008-08-29 Thread Jimmie Tyrrell
Replacement for the time being. Place it in a separate .py file: import re, string from django.template import Node from google.appengine.ext import webapp register = webapp.template.create_template_register() class WithNode(Node): def __init__(self, var, name, nodelist):