开发者

add output of %link directive to variable?

In my master a partial _styles is loaded. In this _styles there is a ^var styles = "" Now in all my views or partials I can say var styles = styles+"another style"

Normally a style is defined as

%link{ href="../../content/css/partial.css" rel="stylesheet" type="text/css" }
开发者_如何学C

How can I append the output of the %link directive to the styles variable?


I wrote a post about adding styles and links with the NHAML.
This should do all job for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜