I added a new file in trunk script/cleanhtml.py
It can help you clone an existing web site or turn it into a layout.
It works in this way:
cleanhtml.py somefile.html
and
cleanhtml.py somefile.css
it re-indents html files and css files in such a way that it becomes
easy to remove the content and manually insert the typical web2py
stuff
{{include 'web2py_ajax'}}
{{=MENU(response.menu)}}
<div class="flash">{{=response.flash or ''}}<div>
{{include}}
to turn the site into a layout.
Mind that it converts all ids and classes to lowercase so both the
html and the css files have to be processed.
Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---