Re: Concept of partial views to be resolved from other views or template tags

2015-04-25 Thread Stephan Herzog
Thanks for your reply. We are actually using ESIs in one place or another and one of the projects I have in mind for refactoring currently uses ESI to achieve something similar. Varnish however is an additional layer on the server that in many of our cases is not really necessary (as in either n

Re: Concept of partial views to be resolved from other views or template tags

2015-04-25 Thread Javier Guerra Giraldez
On Sat, Apr 25, 2015 at 3:11 AM, Stephan Herzog wrote: > I like that approach because it leads to any partial being a separated piece > of logic that can be tested and developed on a dedicated url. If necessary > it can be wrapped in a templatetag, which makes it easy to use from the > template la

Concept of partial views to be resolved from other views or template tags

2015-04-25 Thread Stephan Herzog
Hi all, I am wondering if the following is considered a bad practice and might lead to issues. I think it provides a useful pattern, for example for creating template tags or simple ajax use cases where the rendered result of a partial will get frequently updated. # partials.py class SomeParti