In a model file, maybe something like:

response.view = '%s/%s' % (request.env.http_host.rpartition('.')[-1],response
.view)

Which should yield paths like com/default/index.html, 
de/default/index.html, etc.

Anthony

On Monday, May 19, 2014 8:27:57 AM UTC-4, ctrlSoft wrote:
>
> Hi, what is the best  way to make multiple views for the same controller.
> i have an application with multiple domains .com .de .it co.uk
> for every domain the controllers, models is the same but in views i have 
> to make some changes it's different for every domain
> for static files i used routes, but for views is a little hard to handle 
> this
> i want to have smth like:
> views/
>         de/default/
>         com/default/
>         it/default
> or 
>
> views/default/com/...
> views/default/de/...
> views/default/it/....
>
> is there a way execept response.view in every function?
>
>

-- 
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