Simply copy all your static files in static/
Then copy your index.html into views/layout.html
Edit layout.html and replace 
   href="xyz" -> href="{{=URL('static','xyz')}}"
   src="xyz" -> src="{{=URL('static','xyz')}}"
Edit the place where the content goes and add {{include}}

Now you should have a working layout.

You may want to replace the <ul class="menu">...</ul> with 
{{=MENU(response.menu)}} and add a few things like
<div class="flash">{{=response.flash or ''}}</div>
{{=auth.navbar()}}
{{include 'web2py_ajax.html'}}




On Monday, 9 July 2012 03:16:00 UTC-5, Mark Kirkwood wrote:
>
> I am currently developing a web application using web2py. It is at the 
> point where I want to customize the appearance to blend in with an existing 
> html/templated site that I run - so I need to understand how to customize 
> the web2py layout etc to make this happen. While there seems to be many 
> templates/styles around that I could use, there does *not* seem to be a 
> straightforward set of steps to describe how to use or adapt an existing 
> set of css styles within web2py - or have I missed something?
>

Reply via email to