SkillAgentSearch skills...

Layout

Enable Rails to handle layouts programatically

Install / Use

/learn @djanowski/Layout
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

This plugin enables you to inject assets to a layout.

layout.assets << "application.js" layout.assets << "styles.css"

ie_stylesheet = Stylesheet.new("ie.css") ie_stylesheet.condition = "<= IE 6" layout.assets << ie_stylesheet

That's pretty much it. Those three assets will be injected to your output regardless of the layout you are using.

Oh, you can specify default assets in your environment:

Layout::Base.default_assets = %w{application.js styles.css}

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated6y ago
Forks1

Languages

Ruby

Security Score

55/100

Audited on Aug 13, 2019

No findings