I am not sure what you want to do. Usually response.title is set in the controller. If you want to do it in the view you would have to set it before the extend:
{{response.title='not very dynamic'}} {{extend 'layout.html'}} ... Note that you can use your own layout.html, even name it differently. Have a look in layout.html and see how title is set. For blocks to work you would also need blocks in the layout, for example copy layout.html as layout2.html and add the block-end pair as shown: {{block mytitle}} <title>{{=response.title or request.application}}</title> {{end}} and in your view: {{extend 'layout2.html'}} {{block mytitle}} <title>not very dynamic</title> {{end}} On Feb 9, 2:16 pm, Lorin Rivers <lriv...@mosasaur.com> wrote: > OK, I'm getting there. > > How do I specify response.title in my view? > > On Feb 9, 2011, at 12:55 PM, DenesL wrote: > > > > > If you are using the default layout.html file then just set > > response.title to whatever title you want. > > > On Feb 9, 1:50 pm, Lorin Rivers <lriv...@mosasaur.com> wrote: > >> One of the mental challenges I have with mvc/layout approach is how to > >> assign values from the "inside-out". Almost all the work I have done so > >> far is in the views. > > >> I'd like to dynamically change the title tag (e.g., <title> in the <head> > >> element). > > >> How does that work? > >> -- > >> Lorin Rivers > >> Mosasaur: Killer Technical Marketing <http://www.mosasaur.com> > >> <mailto:lriv...@mosasaur.com> > >> 512/203.3198 (m) > > >> smime.p7s > >> 6KViewDownload > > -- > Lorin Rivers > Mosasaur: Killer Technical Marketing <http://www.mosasaur.com> > <mailto:lriv...@mosasaur.com> > 512/203.3198 (m) > > smime.p7s > 6KViewDownload