On Friday, July 22, 2011 4:56:20 AM UTC-4, David Marko wrote: 
>
> The {{extend }} can use variable as parameter so you can, under ome 
> conditions, compute template name and store it into response object(you can 
> place such code in model)
> e.g.
> response.template="layoutjq.html" 
>
> ... and in a view use the following:
> {{extend response.template}}
>
 
The only caveat in this case is that you cannot then bytecode compile your 
views (because the value of response.template will not be known at compile 
time).
 
Anthony
 

Reply via email to