Re: template code in tinymce editor

2010-02-18 Thread Stephan John
Thanks for this interesting approach. Stephan Am Freitag, 19. Februar 2010 00:34:54 schrieb Matías Costa: > In general no, but in this simple usage it is posible. Writing from > memory, the names will be wrong: > > class Info(models.Model) > ...fields > > def article_context_rendered(

Re: template code in tinymce editor

2010-02-18 Thread Matías Costa
In general no, but in this simple usage it is posible. Writing from memory, the names will be wrong: class Info(models.Model) ...fields def article_context_rendered(self): t = templates.from_string(self.article_context) return t.render({'info':self}; And in the template