Class: Bridgetown::Tags::TranslationTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Bridgetown::Tags::TranslationTag
- Includes:
- Filters::TranslationFilters
- Defined in:
- bridgetown-core/lib/bridgetown-core/tags/t.rb
Instance Method Summary collapse
Methods included from Filters::TranslationFilters
Instance Method Details
#render(_context) ⇒ Object
8 9 10 11 12 13 |
# File 'bridgetown-core/lib/bridgetown-core/tags/t.rb', line 8 def render(_context) input, = @markup.split.map(&:strip) ||= "" t(input, ).to_s end |