aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/capture_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* use AS::SafeBuffer#clone_empty for flushing the output_bufferAkira Matsuda2012-02-201-1/+1
|
* content_for with flush parametergrentis2011-12-291-8/+29
|
* remove checks for encodings availabilitySergey Nartimov2011-12-251-1/+1
|
* Merge pull request #2799 from tomstuart/3-1-stableSantiago Pastorino2011-09-051-3/+3
| | | | Never return stored content from content_for when a block is given
* Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-231-2/+2
|
* Add tests for content_for() for read, closes #475.José Valim2011-05-101-2/+6
|
* More cleanup and moving responsibilities around.José Valim2011-05-011-3/+3
|
* content_for should work with provide.José Valim2011-04-161-4/+4
|
* Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵José Valim2011-04-161-0/+11
| | | | inside a body, so you can stream.
* Initial work on fibered layout.José Valim2011-04-161-3/+3
|
* removes ActionView::Helpers::ScriptaculousHelperXavier Noria2011-04-131-2/+2
|
* s/ERb/ERB/gAkira Matsuda2011-04-031-1/+1
| | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
* Call as ERB::Util.html_escape since is not the module is not included hereSantiago Pastorino2010-11-021-1/+1
|
* Make sure capture's output gets html_escaped [#5545 state:resolved]Jeff Kreeftmeijer2010-11-021-1/+2
| | | | | | | Also remove a duplicate test_link_to_unless assertion and add .html_safe to the remaining one. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove NonConcattingString.José Valim2010-08-291-1/+1
|
* Fix capture_helper.rb api documentation, unescaped script tag was breaking ↵Jaime Iniesta2010-08-261-1/+1
| | | | it on the content_for explanation
* Fixed output_buffer encoding problem [#5179]Sebastian A. Espindola2010-07-251-1/+1
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> Signed-off-by: José Valim <jose.valim@gmail.com>
* Slice new buffer from beginning of old buffer to skip encoding special caseJeremy Kemper2010-06-281-3/+1
|
* Adds title and description where needed.Rizwan Reza2010-06-161-0/+2
|
* Added extra documentation for content_for helperJeroen van Dijk2010-05-151-6/+25
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+2
|
* Eliminate warnings for AM on 1.8wycats2010-03-161-1/+1
|
* link_to_remote -> link_to :remote => trueJeremy Kemper2010-03-151-1/+1
|
* Add deprecation notices for <% %>.Carlhuda2010-03-151-13/+15
| | | | | | | | | | | | | | | | * The approach is to compile <% %> into a method call that checks whether the value returned from a block is a String. If it is, it concats to the buffer and prints a deprecation warning. * <%= %> uses exactly the same logic to compile the template, which first checks to see whether it's compiling a block. * This should have no impact on other uses of block in templates. For instance, in <% [1,2,3].each do |i| %><%= i %><% end %>, the call to each returns an Array, not a String, so the result is not concatenated * In two cases (#capture and #cache), a String can be returned that should *never* be concatenated. We have temporarily created a String subclass called NonConcattingString which behaves (and is serialized) identically to String, but is not concatenated by the code that handles deprecated <% %> block helpers. Once we remove support for <% %> block helpers, we can remove NonConcattingString.
* with_output_buffer cannot assume there's an output_bufferXavier Noria2010-03-151-1/+1
| | | | | | [#4182 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Deprecate block_called_from_erb? pending a solution for getting it into appsCarlhuda2010-03-091-9/+5
|
* Deleted all references to ActionView::SafeBuffer in favor of ↵Santiago Pastorino2010-01-311-1/+1
| | | | | | ActiveSupport::SafeBuffer Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-081-1/+1
| | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration.
* Add content_for?(:name) helper to check if content_for(:name) is present ↵Darragh Curran2009-06-211-0/+22
| | | | | | [#1311 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Extract the layout proc into a method, and write documentation explaining ↵Yehuda Katz + Carl Lerche2009-06-171-4/+0
| | | | what the proc does in various cases.
* Drive the final stake through @content_for_*'s heart!Yehuda Katz + Carl Lerche2009-06-171-3/+2
|
* Ruby 1.9: flushing the output buffer preserves its encodingJeremy Kemper2009-05-281-3/+10
|
* Introduce flush_output_buffer to append the buffer to the response body then ↵Jeremy Kemper2009-03-131-0/+8
| | | | start a new buffer. Useful for pushing custom parts to the response body without disrupting template rendering.
* JavaScriptGenerator should only sets output_buffer for the duration of the ↵Jeremy Kemper2008-07-151-8/+9
| | | | update block
* WhitespaceMichael Koziarski2008-07-111-2/+1
|
* Check whether blocks are called from erb using a special __in_erb_template ↵Jeremy Kemper2008-06-191-2/+6
| | | | variable visible in block binding.
* with_output_buffer returns the temporary buffer instead of the result of the ↵Jeremy Kemper2008-06-081-0/+1
| | | | block
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-3/+3
| | | | the instance variable so others can override the methods.
* Remove some internal dead code that supported content_forJeremy Kemper2008-06-061-15/+5
|
* Work with @output_buffer instead of _erboutJeremy Kemper2008-06-021-5/+13
|
* Try replacing _erbout with @output_bufferJeremy Kemper2008-06-021-42/+14
|
* Update doc (closes #11402)David Heinemeier Hansson2008-03-281-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop rdoc from whiningDavid Heinemeier Hansson2007-09-241-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed CaptureHelper#content_for to work with the optional content parameter ↵David Heinemeier Hansson2007-09-211-3/+9
| | | | | | instead of just the block #9434 [sandofsky/wildchild] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Its just ERb nowDavid Heinemeier Hansson2007-07-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve capture helper documentation. Closes #8796.Jeremy Kemper2007-06-281-25/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Massive documentation update for all helpers (closes #8223, #8177, #8175, ↵David Heinemeier Hansson2007-06-231-53/+65
| | | | | | #8108, #7977, #7972, #7971, #7969) [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added .erb and .builder as preferred aliases to the now deprecated .rhtml ↵David Heinemeier Hansson2007-02-201-4/+4
| | | | | | and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionView::Base.erb_variable accessor names the buffer variable used to ↵Jeremy Kemper2006-11-171-4/+4
| | | | | | render templates. Defaults to _erbout; use _buf for erubis. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de