[web2py] Re: Default controller function

2012-02-01 Thread nick name
Working with unsanitized input like this might be dangerous. http://localhost/content/../../../etc/passwd

[web2py] Re: Default controller function

2012-01-31 Thread Massimo Di Pierro
You can always put the static pages into app/static/ On Jan 31, 6:51 pm, pbreit wrote: > You pretty much need to add both a controller function and a view to add > static pages like that. > > Otherwise, you would need to program some sort of traffic cop to see the > incoming request and manually

[web2py] Re: Default controller function

2012-01-31 Thread pbreit
You pretty much need to add both a controller function and a view to add static pages like that. Otherwise, you would need to program some sort of traffic cop to see the incoming request and manually render it with a view. So create a controller content.py with something like this: def index()

[web2py] Re: Default controller function

2012-01-31 Thread Massimo Di Pierro
How about this? {{extend 'layout.html'}}             {{include "default/content.html'}}     you do not need a controller function to include a view. On Jan 31, 4:18 pm, Ed Greenberg wrote: > I have some html files which I want to render inside the layout. > Something like this: > > {{extend