Hi, i'm using the following template tag in my application:
@register.inclusion_tag('gallery/flv.html') def flv(movie, width=320, height=160): """ """ fl = FlashMovie() return { 'flv_player': fl.get_flvplayer(), 'movie': '%s/%s' % (fl.get_upload_url(), movie), 'width': int(width), 'height': int(height), } In the templates i simply write {% flv "foo.flv" 320 160 %} to get the appropriate html for the movie. Is it possible to reuse the inclusion tag in a admin textarea? Say i write this into a admin textarea: Here's my cool movie: {% flv "foo.flv" 320 160 %} ... And in the model's save() method the template tag is replaced with the appropriate piece of html (from gallery/flv.html), which is then saved in the db. Can this be done, or should i better parse the content myself? Best Regards. -- Dirk Eschler <mailto:[EMAIL PROTECTED]> http://www.krusader.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---