Commit 1677936
committed
Asset pipeline support, small theme change required [THEME] [DEPLOY]
It should now be possible to develop themes which take advantage of the
asset pipeline for non-view resources such as stylesheets using SASS/SCSS
or javascript using CoffeeScript (add to :assets group in Gemfile).
[THEME] If you are maintaining a theme or fork of calagator, you will
need to make a small change to your templates, due to incompatibilities
between the asset pipeline and the ':cache => true' attribute.
1. Change following line in themes/*/views/layouts/application.html.erb:
<%= javascript_include_tag :defaults, :cache => true %>
to look like:
<%= javascript_include_tag 'application' %>
2. Remove any additional ':cache => true' attributes used in your
theme; most likely you won't find any beyond #1 above.
[DEPLOY] Deploying calagator now requires you to precompile assets using:
$> rake assets:precompile
Conflicts:
config/environments/development.rb1 parent c93288a commit 1677936
File tree
57 files changed
+66
-13
lines changed- app/assets
- images
- external_sites
- javascripts
- stylesheets
- config
- environments
- initializers
- public
- themes/default/views/layouts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
57 files changed
+66
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
160 | 175 | | |
161 | 176 | | |
162 | 177 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments