NHaml Visual Studio Plugin
Dave Newman has created a cool NHaml . Thanks Dave and keep up the good work!
Trackbacks
Use this link to trackback from your own site.
Dave Newman has created a cool NHaml . Thanks Dave and keep up the good work!
Use this link to trackback from your own site.
Hi Andrew,
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?
Thanks,
Pawel
Hi Pawel,
I just added a new operator into the trunk that allows you to do this. You can use it like so:
// Application.haml
%head
%title= title
%body
_
// MyView.haml
^ var title = “My Title”
Let me know how this works for you.
Cheers,
Andrew.
It works great, exactly as it should :)
Thanks a lot, Andrew!