Re: Extending templates programmatically (redux)

2006-07-28 Thread Bryan Chow
I noticed that this ticket has just been closed. Just wanted to say Thanks to the Django dev team for finally accepting our patch! http://code.djangoproject.com/ticket/1650 Cheers, Bryan :) Bryan Chow wrote: > Just wanted to bring attention back to this issue. A few months ago, > Ian Clelland

Extending templates programmatically (redux)

2006-06-28 Thread Bryan Chow
Just wanted to bring attention back to this issue. A few months ago, Ian Clelland and I submitted a ticket to allow templates to be extended programatically, i.e. not necessarily on the filesystem. I love the Django templating system but it seems strange that this capability is not already in Djan

Re: Extending templates programmatically

2006-04-17 Thread Ian Clelland
On 4/16/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Sure, I'd say that's worth submitting as an enhancement ticket. I can > definitely see use for that! Done -- it's at http://code.djangoproject.com/ticket/1650 (It's a bit more than two lines, but only because I threw in a couple of unit

Re: Extending templates programmatically

2006-04-16 Thread Adrian Holovaty
On 4/16/06, Ian Clelland <[EMAIL PROTECTED]> wrote: > Now I can do things like this: > > from django.template import Context, Template, loader > a = Template("{% extends templateone %}{% block one %}Hello {{ name > }}{% endblock %}") > b = Template("{% block one %}Stuff{% endblock %}") > a.render(

Extending templates programmatically

2006-04-16 Thread Ian Clelland
I've been looking into the django template system, and how to use it in situations other than html rendering (e.g, building up email messages from templates in the database) It would be very useful in these sorts of situations to be able to extend from a template that does not exist inside of a t