Skip to content

djanowski/layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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}

About

Enable Rails to handle layouts programatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages