Re: Issue 5 in nhaml: Support for multiple "ContentPlaceHolders"

2 views
Skip to first unread message

codesite...@google.com

unread,
Nov 5, 2009, 6:30:55 AM11/5/09
to nhaml...@googlegroups.com

Comment #18 on issue 5 by Boris.Callens: Support for
multiple "ContentPlaceHolders"
http://code.google.com/p/nhaml/issues/detail?id=5

I second #10

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Nov 6, 2009, 4:50:55 AM11/6/09
to nhaml...@googlegroups.com

Comment #19 on issue 5 by lanwin.de: Support for
multiple "ContentPlaceHolders"
http://code.google.com/p/nhaml/issues/detail?id=5

Nathan Weizenbaum has answered about this question. He think it is not a
good idea to
extend this as language feature and i am still have the same opinion about
it.

http://groups.google.com/group/haml/browse_thread/thread/f109a30905ef6f3a?hl=en

The best way is to implement it as helper like this:

%html
%head
%title
=TryRender("myTitleBlock") =>
Default Title, In Case Concrete View Page Doesn't Override This Block
%body
%h1
-Capture("myBodyBlock") =>
= Default Header, In Case Concrete View Page Doesn't Override

Reply all
Reply to author
Forward
0 new messages