There are numerous web2py themes, but none of them are very good. So I
decided to make a nice one based on:
http://demo.woothemes.com/?name=meta-morphosis.

I'm creating a layout plugin according to these instructions:
- http://web2py.com/book/default/chapter/13#Layout-plugins
- http://www.web2py.com/AlterEgo/default/show/92

I tried the following from the official book:

> Third, modify the "views/layout.html" so that it simply reads:

1. {{include 'plugin_layout_name/layout.html'}}


It almost works, however the {{include}} in my layout.html is not expanded.
Earlier in the same file, "{{include 'web2py_ajax.html'}}" expands as
expected.
If I over-write the "views/layout.html" file instead of {{including}} it as
recommended, it works. Any ideas as to why?

Also, what's the easiest way to package this as a web2py plugin? (Like:
http://www.web2py.com/layouts/static/plugin_layouts/plugins/web2py.plugin.layout_ConcreteV2.w2p
)
I'd be happy to share my work if anyone is interested. I intentionally
picked a free, GPL'ed theme.

Thanks,
John
-- 
www.leftium.com <http://www.leftium.com/?sig_gmail>

Reply via email to