Posted by Andrew on May 06, 2008
Dave Newman has created a cool NHaml . Thanks Dave and keep up the good work!
Use this link to trackback from your own site.
Leave a response
could you tell me what is the best way in NHaml to deliver page title from a view template to the Application.haml layout?
If a page title is static (usually it is), then a view is a right place to set it - but the %title tag itself is defined in Application.haml.
How do you do it?
I just added a new operator into the trunk that allows you to do this. You can use it like so:
^ var title = “My Title”
Let me know how this works for you.
It works great, exactly as it should :)
Thanks a lot, Andrew!
(will not be published)
Notify me of followup comments via e-mail
Andrew Peters’ Blog