It's not quite clear what you are trying to do. Can you show some sample 
code? When you say you have three variants of a block, can you not use the 
{{block}} functionality or some conditional logic in the base?

Note, if you don't plan to compile views, you can use a variable or other 
Python expression within an {{extend ...}} directive.

Anthony

On Thursday, March 30, 2017 at 7:33:43 AM UTC-4, Jurgis Pralgauskis wrote:
>
> Hi, 
>
> if I have 2 base views:
> base1.html
> base2.html
>
>
> and  I have 3 variants  to ovveride same block: 
> A
> B
> C
>
>
> Can I dynamically generate extended view, sth like:
> render( dyn_view(base, ovverride) ,   dict_vars )
>
> As I feel the standardt way is a bit clumsy:
>
> base1A.html
> base1B.html
> base1C.html
>
> base2A.html
> base2B.html
> base2C.html
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to