Wednesday, May 1, 2013

Dynamic block names in template.

I was searching for an option to set the block name of a django template dynamically and couldn't find and good resources. I browsed through the django code base and made a hack. I am not sure if it breaks any functionalities of django. Can any one verify this.

I posted a question and the hack i found in stack overflow.

http://stackoverflow.com/questions/16320010/is-there-a-way-to-set-name-of-a-block-using-variables-in-django-templates/

http://codereview.stackexchange.com/questions/25700/django-template-block-name-changing-function

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment