On 12 nov, 14:01, Maksymus007 <maksymus...@gmail.com> wrote:
(snip)

> Well, yes, messages,html can be split into several files and then
> app_messages.html can include them in order. But then every
> app_messages.html must include them, which, in fact, is just
> copy-paste messages.html with different {%extends %}
> all I needed was to include a string within extended template and I
> foundhttp://www.djangosnippets.org/snippets/447/which, despite its
> age, worked (some changes were needed to have variables properly
> handeled, but well) like a charm.
>
> Then in app_messages.html i got:
>
> {% load xextends %}
> {% xextends "messages/messages.html" with parent="app/app.html" %} -
> which points to my additional frame with tabs, etc. Exactly what i
> wanted.

Yeps, I just knew I had already seens something like that
somewhere !-)

Ok, problem solved then.

> Your solution is way cool, but again, its violates DRY -
> additional code in every view (can be probably ommited by decorators,

Indeed.

> but still, the same decorator for every view  ;) )

Yeps, I know. But it's the best solution I could came with within the
5 minutes I had to solve the problem - and it can eventually solve
other problems that xextends could not (well, eventually, really - no
concrete example at hand ATM)

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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=.


Reply via email to