*bump* anyone have any idea on this?
On Mar 1, 9:17 pm, Roy <royt...@gmail.com> wrote:
> Hi group,
>
> Say I have the ff in my base.html:
>
> {% include template_name %}
>
> And template_name is a variable that resolves to some template path,
> let's say the file at that path contains the following:
>
> {% block content %}Place content here{% endblock %}
>
> Now, if I have another template child.html that extends base.html, and
> it contains the ff:
>
> {% extends "base.html" %}
>
> {% block content %}My content!{% endblock %}
>
> So, my intent is that if I render to child.html, I would be able to
> replace the content block in the template included in the base. It
> seems not to work though. Anyone have any idea how I can do this?
>
> fyi, the intent is to generate the markup structure of the page
> dynamically, hence the template_name variable can be changed to render
> the page in different appearances or formats.
>
> Thanks!
>
> Roy
--~--~---------~--~----~------------~-------~--~----~
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
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---