Re: custom tag for html fragment with dynamic content

2008-09-22 Thread christian
This is how i am now doing it i call the template: {% instance block %} {% include_feed "http://localhost:8080/feeds/news/"; 5 feeds/ test.html %} {% endinstance %} my code is: @register.tag(name="instance") def make_instance(parser, token): try: tag_name, arg = token.

custom tag for html fragment with dynamic content

2008-09-22 Thread christian
This is a newbie question! If this question has already been posted, kindly point me to the correct thread! I've written a few inclusion_tags in django so far and like the way it works. However I would like to make things more dynamic because i want the same HTML markup and classes with a differ