开发者

Is it possible to pass an array to content_for (ruby on rails)

Suppose I have a main layout, a nested layout, and a view. Each has its own CSS file associated with it.

Is it possible to pass the two CSS files for the nested layout and the view to the main layout so that it can include all three files into a single call t开发者_StackOverflow社区o Jammit's include_stylesheets (via content_for)?

The purpose is to leverage Jammit's concatenation functionality in prod.

I could use eval, but I'd like to avoid using that function.

Thanks

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜