How about this?

{{extend 'layout.html'}}
    <div id="homeContent">
        {{include "default/content.html'}}
    </div>

you do not need a controller function to include a view.

On Jan 31, 4:18 pm, Ed Greenberg <greenberg...@gmail.com> wrote:
> I have some html files which I want to render inside the layout.
> Something like this:
>
> {{extend 'layout.html'}}
>     <div id="homeContent">
>         content goes here
>     </div>
>
> All it needs is an empty dict, since it won't look for anything from
> the controller to customize it.
>
> I put this file in views/default/content.html
>
> My understanding is that I need a function in controllers/default.py
> called content().  Without it, I get "Invalid Function default/
> content"
>
> Since I expect more than one file of this nature, I'd prefer not to
> create a whole bunch of virtually empty controller functions.   Is
> there any way to have a default controller function?
>
> Thanks,
> Ed

Reply via email to