Working with unsanitized input like this might be dangerous.
http://localhost/content/../../../etc/passwd
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
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()
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
4 matches
Mail list logo