Jordan Owens
|
9fef844f06
|
Update yield_content to append default to ERB template buffer
|
2018-12-08 14:03:42 -05:00 |
|
tkmru
|
2b43d84920
|
add erubi to test and sinatra-contrib
|
2018-11-05 01:41:24 +09:00 |
|
stjhimy
|
8003802307
|
Migrate to rspec 3.4
|
2016-06-21 15:12:09 -03:00 |
|
Ryo Nakamura
|
e82db85a2d
|
Allow users to yield a simple String to be rendered
Added a missing feature from ActionView::Helpers::CaptureHelper
- http://api.rubyonrails.org/classes/ActionView/Helpers/CaptureHelper.html#method-i-content_for
- fcbd2e821e/actionview/lib/action_view/helpers/capture_helper.rb (L149-L162)
|
2016-05-06 01:03:37 +09:00 |
|
Zachary Scott
|
87853c1431
|
Fix failing specs for ContentFor
/cc #152
|
2016-05-03 17:39:26 +09:00 |
|
Zachary Scott
|
914f390377
|
Merge pull request #152 from kapowaz/clear-content-for
Add clear_content_for helper method
|
2016-05-03 17:34:21 +09:00 |
|
Zachary Scott
|
57373804f8
|
Merge pull request #121 from centresource/master
Adding default content for yield_content method
|
2016-05-03 17:16:06 +09:00 |
|
Ben Darlow
|
f6045b5ebd
|
Add clear_content_for helper method
|
2015-03-06 22:31:18 +00:00 |
|
Bo Jeanes
|
5e01e0db22
|
Limit backports usage in specs
|
2014-05-12 19:59:19 -07:00 |
|
Micah Redding
|
0c91aba8ff
|
Adding ability for the yield_content method in the content_for package to define default content in the absence of content for a given key
|
2014-02-11 17:41:59 -06:00 |
|
Katrina Owen
|
f703b7b488
|
Clean up trailing whitespace
|
2012-12-09 20:10:08 +01:00 |
|
Ilya Shindyapin
|
4422a1ad7c
|
Added the test cases for content_for?
Signed-off-by: Ilya Shindyapin <ilya@shindyapin.com>
|
2011-12-15 16:27:19 -05:00 |
|
Konstantin Haase
|
51ae1c22fe
|
use render in specs to avoid deprecation warnings on sinatra 1.3
|
2011-08-17 12:32:19 +02:00 |
|
Konstantin Haase
|
5e1375a5cc
|
fixes for Tilt 1.3
|
2011-04-26 22:19:03 +02:00 |
|
Konstantin Haase
|
14a1613013
|
play nice if yield_content or content_for is called from outside a template
|
2011-04-26 11:05:14 +02:00 |
|
Konstantin Haase
|
5360a0d930
|
add tests for calling yield_content more than once
|
2011-03-28 17:12:43 +02:00 |
|
Konstantin Haase
|
e417ccc1e7
|
add slim support to content_for
|
2011-03-28 16:57:39 +02:00 |
|
Konstantin Haase
|
ee59224a99
|
add support for erubis to content-for
|
2011-03-28 16:23:34 +02:00 |
|
Konstantin Haase
|
7e72a34a3a
|
don't rely on template engine internals to capture a block, makes yield_content usage consistent in erb and haml, allows combining the two
|
2011-03-28 16:06:17 +02:00 |
|
Konstantin Haase
|
7fa95253e3
|
move content-for tests to rspec
|
2011-03-28 10:11:57 +02:00 |
|