我想将原始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>
)
Run Code Online (Sandbox Code Playgroud)
Mas*_*low 27
@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>)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1936 次 |
| 最近记录: |