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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to