Permalink
Browse files

add :abbr tag, skip [tag]_for helper methods for now because they cla…

…sh with other libraries (e.g. simple_tables)
  • Loading branch information...
1 parent e5078eb commit 580950342df3fdb49cac2bfb938b1fb11627f21a Sven Fuchs committed Sep 11, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/minimal/template.rb
@@ -5,8 +5,8 @@ class Minimal::Template
autoload :TranslatedTags, 'minimal/template/translated_tags'
AUTO_BUFFER = %r(render|tag|error_message_|select|debug|_to|[^l]_for)
- TAG_NAMES = %w(a body div em fieldset h1 h2 h3 h4 h5 h6 head html img input label li link
- ol option p pre script select span strong table thead tbody tfoot td title th tr ul)
+ TAG_NAMES = %w(abbr a body div em fieldset h1 h2 h3 h4 h5 h6 head html img input label li
+ link ol option p pre script select span strong table thead tbody tfoot td title th tr ul)
SKIP_IVARS = [:controller]
module Base
@@ -25,11 +25,12 @@ def _render(locals = nil, format = :html, &block)
TAG_NAMES.each do |name|
define_method(name) { |*args, &block| content_tag(name, *args, &block) }
- define_method("#{name}_for") { |*args, &block| content_tag_for(name, *args, &block) }
+ # define_method("#{name}_for") { |*args, &block| content_tag_for(name, *args, &block) }
end
def <<(output)
view.output_buffer << output
+ view.output_buffer << "\n".html_safe
end
alias :output :<<

0 comments on commit 5809503

Please sign in to comment.