NHaml Visual Studio Plugin

Posted by Andrew on May 06, 2008

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.

Comments

Leave a response

  1. Pawel TarnikNo Gravatar Fri, 16 May 2008 07:33:57 CDT

    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

  2. AndrewNo Gravatar Sat, 17 May 2008 00:56:22 CDT

    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.

  3. Pawel TarnikNo Gravatar Sun, 18 May 2008 12:56:22 CDT

    It works great, exactly as it should :)

    Thanks a lot, Andrew!

Comments