Does NHaml have a content_for ability for layouts?

陌路散爱 提交于 2019-12-05 08:24:20

Use the ^ evaluator in the master page, and set it's value in each of the layouts(content pages).

See NHaml Samples from it's source on Google Code.

The "content placeholders" are not yet supported.
But there is a request for that.

You can vote for it too

BUT this is how I provided per-page content in NHAML:
http://dnagir.blogspot.com/2009/07/nhaml-scripts-and-styles-code-block.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!