Could I specific two different locations for 'include' in layout.html?

32 views
Skip to first unread message

Jing Lu

unread,
Jun 24, 2016, 12:34:53 PM6/24/16
to web2py-users
Dear web2py developers,


I have two places I want to change in layout.html. One is a left-bar and one is the main frame. Is there any way to add two ‘include’? Or, is there any way that I can do something functionally similar?


Thanks,

黄祥

unread,
Jun 24, 2016, 7:47:38 PM6/24/16
to web2py-users
i think it can do in web2py
e.g.
views/default/contact_us.html
{{right_sidebar_enabled = True}}

{{block right_sidebar}}
{{include 'templates/right_sidebar.html'}}
{{end}}

{{extend 'layout.html'}}

{{include 'templates/form.html'}}

best regards,
stifan

Reply all
Reply to author
Forward
0 new messages