On Thu, Nov 5, 2009 at 6:18 PM, Simon Cropp <simon.cr
...@gmail.com> wrote:
> is there a feature like this in haml?
> ===================================
> Is there a way to have something like "ContentPlaceholders" in the master
> file as in aspx forms, so that I can replace for example the content in the
> TitleRegion specified in the master file with content coming from the the
> current view?
> Possible syntax for Application.haml, using '?' not at the top-level.
> %html
> %head
> %title
> ?myTitleBlock
> Default Title, In Case Concrete View Page Doesn't Override This
> Block
> %body
> ?myBodyBlock
> %h1= Default Header, In Case Concrete View Page Doesn't Override
> This Block
> Possible syntax for ConcreteView.haml, using '?' at top level
> indicating to override
> a named block, and not overriding another named block leaving it as the
> default
> defined in Application.haml.
> ?myBodyBlock
> %h1= Overridden Header.
> %p= First paragraph of overriding text.
> %p= Second paragraph of overriding text.
> %ul
> - foreach(var obj in Model.Objects)
> %li= obj.Text
> =======================================
> from here http://code.google.com/p/nhaml/issues/detail?id=5