Changeset 73
- Timestamp:
- 08/18/2006 13:01:45 (2 years ago)
- Files:
-
- 1 modified
-
branches/xhtml-careful/lib/markaby/builder.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/xhtml-careful/lib/markaby/builder.rb
r72 r73 136 136 # If used several times, the variable will contain all the parts concatenated. 137 137 def content_for(name, &block) 138 eval "@content_for_#{name} = (@content_for_#{name} || '') + capture(&block)" 138 @helpers.assigns["content_for_#{name}"] = 139 eval("@content_for_#{name} = (@content_for_#{name} || '') + capture(&block)") 139 140 end 140 141