aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add render(:update) to ActionView::BaseSam Stephenson2006-01-231-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for new rjs templates which wrap an update_page block.Marcel Molina2005-11-171-23/+66
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Inline commonly-called template presence checks. Closes #2882.Jeremy Kemper2005-11-161-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only include builtin filters whose filenames match ↵Jeremy Kemper2005-11-131-5/+4
| | | | | | /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. References #2855. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added request as instance method to views, so you can do <%= ↵David Heinemeier Hansson2005-11-071-1/+1
| | | | | | request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2918 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix spelling errorNicholas Seckar2005-10-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make string-keys locals assigns optionalNicholas Seckar2005-10-171-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update/clean up AP documentation (rdoc)Jamis Buck2005-10-161-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add temporary support for passing locals to render using string keysNicholas Seckar2005-10-161-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clean up error pages by providing better backtracesNicholas Seckar2005-10-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved line number reporting for template errorsNicholas Seckar2005-10-131-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Misc doc fixes (typos/grammar/etc). Closes #2445.Marcel Molina2005-10-121-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* My life for white spaceDavid Heinemeier Hansson2005-09-281-5/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Streamline render process, code cleaning. Closes #2294.Nicholas Seckar2005-09-271-54/+122
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that render :partial would fail when :object was a Hash (due to ↵David Heinemeier Hansson2005-09-091-1/+4
| | | | | | backwards compatibility issues) #2148 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Yield @content_for_ variables to templates #2058 [Sam Stephenson]Jamis Buck2005-09-011-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add dummy ActionView::Base.cache_template_loading accessor -- will be made ↵Nicholas Seckar2005-08-291-0/+3
| | | | | | functional again in short time git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2066 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Render refactoring; render error reporting fixesNicholas Seckar2005-08-261-104/+69
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More fixes, but still brokenDavid Heinemeier Hansson2005-07-271-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1948 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixing the fix, but not quiteDavid Heinemeier Hansson2005-07-271-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document the design of the compiled templates approach and tweak the ↵David Heinemeier Hansson2005-07-261-4/+8
| | | | | | expiration check git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1929 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance of test app req/sec with ~10% refactoring the render ↵David Heinemeier Hansson2005-07-241-1/+5
| | | | | | method #1823 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Caching template logging goes DEBUGDavid Heinemeier Hansson2005-07-231-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extended template caching to rxml and attempted to fix periodical caching ↵David Heinemeier Hansson2005-07-231-40/+49
| | | | | | issue [Stephan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed call on inline with new render_template #1808 [Michael Shuerig]David Heinemeier Hansson2005-07-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed changing templates in development mode [Stephan Kaes]David Heinemeier Hansson2005-07-221-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed caching/expiration/hit to report using the DEBUG log level and ↵David Heinemeier Hansson2005-07-221-3/+3
| | | | | | errors to use the ERROR log level instead of both using INFO git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use debug to report compilation of erb templatesDavid Heinemeier Hansson2005-07-221-6/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed compile of template fails if template name contains non-word character ↵David Heinemeier Hansson2005-07-221-2/+3
| | | | | | #1802 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved rendering speed on complicated templates by up to 25% #1234 ↵David Heinemeier Hansson2005-07-211-43/+90
| | | | | | [Stephan Kaes]. This did necessasitate a change to the internals of ActionView#render_template that now has four parameters. Developers of custom view handlers (like Amrita) need to update for that. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed line number reporting for Builder template errors #1753 [piotr]David Heinemeier Hansson2005-07-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make render(:inline) use locals #1556 [Michael Shuerig]David Heinemeier Hansson2005-07-011-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r1318@iwill: jeremy | 2005-06-15 01:08:22 -0700Jeremy Kemper2005-06-151-11/+1
| | | | | | | | | | | | | | | Ticket 1394 - Helper isolation r1319@iwill: jeremy | 2005-06-15 01:10:00 -0700 Formulate a test case for helper isolation. r1331@iwill: jeremy | 2005-06-15 15:21:07 -0700 Update changelog r1332@iwill: jeremy | 2005-06-15 15:21:30 -0700 Remove superfluous, broken layout_test r1333@iwill: jeremy | 2005-06-15 15:24:10 -0700 Use an anonymous Module to store helpers per-class instead of tossing them all in template_class. Create a new helper module for subclasses which includes its superclass' helper module. Remove unnecessary ActionView::Base.controller_delegate. Update helper tests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made Action View work with the new render :file/:partial style from the ↵David Heinemeier Hansson2005-06-021-2/+15
| | | | | | controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include flash in the list of attributes with accessors in the viewDavid Heinemeier Hansson2005-05-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added accessors to logger, params, response, session, and headers from the ↵David Heinemeier Hansson2005-05-191-0/+2
| | | | | | view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for POST data in form of YAML or XML, which is controller ↵David Heinemeier Hansson2005-05-141-1/+1
| | | | | | through the POST_DATA_MARSHAL header git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed stringification on all assigned hashes. The sacrifice is that ↵David Heinemeier Hansson2005-04-191-1/+1
| | | | | | assigns[:person] wont work in testing. Instead assigns["person"] or assigns(:person) must be used. In other words, the keys of assigns stay strings but weve added a method-based accessor to appease the need for symbols. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated the majority of all the testing assertions and replaced them with ↵David Heinemeier Hansson2005-04-171-2/+2
| | | | | | a much smaller core and access to all the collections the old assertions relied on. That way the regular test/unit assertions can be used against these. Added documentation about how to use it all. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed partials handlingDavid Heinemeier Hansson2005-04-161-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActionView::Base.register_template_handler for easy integration of an ↵David Heinemeier Hansson2005-02-191-15/+42
| | | | | | alternative template language to ERb and Builder. See test/controller/custom_handler_test.rb for a usage example #656 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-071-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated documentationDavid Heinemeier Hansson2004-12-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to ERB templates to swallow newlines by using <% if something ↵David Heinemeier Hansson2004-12-121-1/+1
| | | | | | -%> instead of just <% if something %> git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that cached template loading would still check the file system to see ↵David Heinemeier Hansson2004-12-011-1/+2
| | | | | | if the file existed #258 [Andreas Schwarz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@43 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* InitialDavid Heinemeier Hansson2004-11-241-0/+264
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de