https://github.com/mnutt/action_assets_helper
Put action-specific javascript and stylesheet link tags in the views, and render them in application.html.erb
https://github.com/mnutt/action_assets_helper
Last synced: about 1 year ago
JSON representation
Put action-specific javascript and stylesheet link tags in the views, and render them in application.html.erb
- Host: GitHub
- URL: https://github.com/mnutt/action_assets_helper
- Owner: mnutt
- Created: 2009-02-09T04:30:30.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T12:50:15.000Z (about 8 years ago)
- Last Synced: 2025-04-05T09:41:57.197Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 81.1 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
ActionAssetsHelper
==================
Convenient helper plugin to add javascripts and stylesheets via individual
views, and have them appear in the document head.
Example
=======
# app/views/posts.html.erb:
<% javascript_include 'post_show' -%>
<% stylesheet_link 'posts' -%>
# app/views/layouts/application.html.erb:
...
<%= javascript_include_actions -%>
<%= stylesheet_link_actions -%>
This specifies action-specific javascript and stylesheet in the view, while the
tags are rendered in the layout.
Copyright (c) 2009 Michael Nutt and Justin Camerer, released under the MIT license