我想将原始html传递给@helper宏…这可能吗?例如:
@helper oneColumn(string content) { <div class="row"> <div class="twelve columns"> @content </div> </div> } @put.oneColumn( <h1 id="page-heading">HELLO WORLD!</h1> )
解决方法
@helper oneColumn(Func<dynamic,HelperResult> content) { <div class="row"> <div class="twelve columns"> @content(null) </div> </div> } @put.oneColumn( @<h1 id="page-heading">HELLO WORLD!</h1>)