Yesterday I coded the following reservation/booking app:
http://web2py.com/examples/static/web2py.app.booking.w2p
In the process I realized it would be nice if a plugin could setup
more <meta ...> and <style...> and <script...> in the response header,
conditionally. I have therefore deprecated response.keywords in favor
of the cleaner response.meta.keywords, etc etc. Moreover plugins can
now do
response.meta.description='booking plugin'
response.files.append(URL(r=request,c='static',f='plugin_NAME/
plugin_file.js'))
response.files.append(URL(r=request,c='static',f='plugin_NAME/
plugin_file.css'))
and this will properly be included in the header. So here is a revised
booking application that uses this new feature in trunk:
http://web2py.com/examples/static/web2py.app.booking2.w2p
Take a look and compare with the previous
http://web2py.com/examples/static/web2py.app.booking.w2p
I agree that more structure may be needed but for now this minimalist
approach seems to work.
Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---