aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/asset_tag_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Make sure javascript_include_tag/stylesheet_link_tag does not append ".js" ↵Matthew Rudy Jacobs2009-08-051-10/+14
| | | | | | or ".css" onto external urls [#1664 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix tag helpers so that all HTML element boolean attributes render according ↵Marc Love2009-07-301-1/+1
| | | | | | to the specs. Added all boolean attributes listed in the XHTML 1.0 specs (http://www.w3.org/TR/xhtml1/guidelines.html) and HTML 5 specs (http://www.whatwg.org/specs/web-apps/current-work). HTML 5 boolean attribute rendering was broken in commit 1e2d7229602f467cfdc0ef606b5ef8a5566a1501 / [#2864 state:resolved]. Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Adds a audio_tag helper for the HTML5 audio tag. Fixed video_path docs. HTML ↵Emilio Tagua2009-07-071-3/+35
| | | | | | attributes values should be true or false not attribute's name. [#2864 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
* Removed unnecessary calls to image_path and hash lookups [#2827 state:resolved]Yehuda Katz + Carl Lerche2009-07-021-3/+3
|
* Adds a video_tag helper for the HTML5 video tag (similar to how the ↵Tieg Zaharia2009-07-021-0/+67
| | | | | | image_tag works) (tests included); removes a duplicate test line for image_tag; adds boolean attributes for video tag to tag()'s boolean attributes Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* Handle missing javascript/stylesheets assets by raising an exceptionChristos Zisopoulos2009-06-261-4/+28
| | | | | | | | | | | | An exception will be raised if a local javascript/stylesheet file included by the stylesheet_link_tag or javascript_include_tag can not be found. When caching is enabled, we use atomic_write to ensure that the cache file is not created with zero length. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2738 state:committed]
* Add :concat option to asset tag helpers to force concatenation.Joshua Peek2009-06-151-6/+18
| | | | | This is useful for working around IE's stylesheet limit. stylesheet_link_tag :all, :concat => true
* allow absolute paths for the asset cachesAndrew Kaspick2009-06-111-3/+3
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Eliminate unnecessary File.exist? when correct file extension given [#1879 ↵Andrew White2009-02-051-1/+2
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge docrailsPratik Naik2009-01-181-50/+74
|
* Cache AssetTag timestampsJoshua Peek2009-01-041-5/+31
|
* Revert to the good old days when AssetTag didn't cause anyone problemsJoshua Peek2009-01-021-325/+131
|
* Fixed the AssetTagHelper cache to use the computed asset host as part of the ↵David Heinemeier Hansson2009-01-011-5/+5
| | | | cache key instead of just assuming the its a string [#1299 state:committed]
* Ensure ActionMailer doesn't blow up when a two argument proc is set for the ↵Tekin Suleyman2008-12-011-1/+1
| | | | | | | asset host Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1394 state:committed]
* Make sure #compute_public_path caching allows to return different results ↵Sven Fuchs2008-11-291-1/+1
| | | | | | for different given sources [#1471 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added the option to declare an asset_host as an object that responds to call ↵David Heinemeier Hansson2008-11-271-3/+11
| | | | (see http://github.com/dhh/asset-hosting-with-minimum-ssl for an example) [DHH]
* need to make sure the asset type is cached with it in Cache.. name is ↵Aaron Batalion2008-11-191-2/+2
| | | | | | sufficient, not self Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fixed asset host to not cache objects [#1419 state:resolved]Aaron Batalion2008-11-191-29/+35
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fixed bug with asset timestamping when using relative_url_root (Joe ↵David Heinemeier Hansson2008-10-261-1/+1
| | | | Goldwasser) [#1265 status:committed]
* Fix image_tag behavior on windows. [#1085 state:resolved]madlep2008-10-061-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed AssetTag cache with with relative_url_root [#1022 state:resolved]Martin Rehfeld2008-09-221-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Refactor AssetTagHelper and fix remaining threadsafe issues.Joshua Peek2008-09-221-148/+316
|
* Switched computed public paths cache over to a simple hash w/ mutexJoshua Peek2008-09-101-15/+17
|
* Removed unnecessary Symbol#to_proc from Asset Tag Helper.Clemens Kofler2008-09-031-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix asset file paths with dangling queries in mtime checkJeremy Kemper2008-08-141-2/+6
|
* Set asset-cached file ctime and mtime to the max mtime of the combined ↵Jeremy Kemper2008-08-121-0/+5
| | | | files. Allows for consistent ETag generation without having a shared filesystem.
* MemoryStore is the only "unsafe" store. Make it threadsafe by default.Joshua Peek2008-08-061-1/+1
|
* AbstractRequest.relative_url_root is no longer automatically configured by a ↵Joshua Peek2008-07-241-3/+3
| | | | HTTP header. It can now be set in your configuration environment with config.action_controller.relative_url_root
* Wrap AssetTagHelper's computed public path cache in a threadsafe storeJoshua Peek2008-07-171-33/+25
|
* Resolved conflictDavid Heinemeier Hansson2008-07-161-18/+44
|\
| * Add :recursive option to javascript_include_tag and stylesheet_link_tag to ↵Damian Janowski2008-07-081-14/+42
| | | | | | | | | | | | be used along with :all. [#480 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Move the file exists checks outside write_asset_file_contents.Michael Koziarski2008-07-031-6/+4
| | | | | | | | This lets us avoid the relatively costly trip through compute_*_paths if the file already exists.
* | Fixed that AssetTagHelper#compute_public_path shouldn't cache the asset_host ↵David Heinemeier Hansson2008-07-161-11/+14
|/ | | | along with the source or per-request proc's won't run [DHH]
* Merge docrails.Pratik Naik2008-05-251-12/+12
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge branch 'master' of git://github.com/stephencelis/railsJoshua Peek2008-04-141-3/+3
|\
| * Scripts and styles with multiple dots in the filename should cacheStephen Celis2008-04-121-3/+3
| |
* | Added Rails.public_path to control where HTML and assets are expected to be ↵David Heinemeier Hansson2008-04-131-1/+1
|/ | | | loaded from (defaults to Rails.root + "/public") #11581 [nicksieger]
* Re-added ActionView::Helpers::register_javascript/stylesheet_expansion to ↵Jeremy Kemper2008-03-201-18/+55
| | | | | | make it easier for plugin developers to inject multiple assets. Closes #10350. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [9106]. References #10350.Jeremy Kemper2008-03-191-57/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9063 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #11281) [jlindley]David Heinemeier Hansson2008-03-151-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionView::Helpers::register_javascript/stylesheet_expansion to make ↵David Heinemeier Hansson2008-03-131-21/+57
| | | | | | it easier for plugin developers to inject multiple assets (closes #10350) [lotswholetime] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Check the host string contains %d before using String#%, this avoids ↵Michael Koziarski2008-02-181-1/+1
| | | | | | warnings. Closes #10809 [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't repeatedly add relative_url_root to asset sources. Closes #10767 ↵Michael Koziarski2008-01-271-5/+11
| | | | | | [tomtoday, Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle corner case with image_tag when passed 'messed up' image names. ↵Michael Koziarski2008-01-251-1/+1
| | | | | | Closes #9018 [duncanbeevers, mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct docs on caching and all.jsMichael Koziarski2008-01-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: remove stray colonJeremy Kemper2008-01-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The asset_host block takes the controller request as an optional second ↵Jeremy Kemper2008-01-061-3/+23
| | | | | | argument. Example: use a single asset host for SSL requests. Closes #10549. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to pass proc to ActionController::Base.asset_host for maximum ↵David Heinemeier Hansson2007-12-161-8/+38
| | | | | | configurability (closes #10521) [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix javascript_tag method name collision. Closes #10337.Jeremy Kemper2007-12-101-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de