Module: Phlex::Rails::Helpers::Tag
- Defined in:
- lib/phlex/rails/helpers/tag.rb
Overview
Note:
This helper is provided for completeness, but you should probably use Phlex tag methods directly instead.
An adapter for the tag
helper.
Instance Method Summary collapse
-
#tag ⇒ Object
Builds HTML tags.
Instance Method Details
#tag ⇒ Object
Builds HTML tags
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/phlex/rails/helpers/tag.rb', line 8 def tag(...) result = helpers.tag(...) case result when ActiveSupport::SafeBuffer @_context.target << result when ActionView::Helpers::TagHelper::TagBuilder Phlex::Rails::Buffered.new( result, view: self ) end end |