Class: Bridgetown::Tags::TranslationTag

Inherits:
Liquid::Tag
  • Object
show all
Includes:
Filters::TranslationFilters
Defined in:
bridgetown-core/lib/bridgetown-core/tags/t.rb

Instance Method Summary collapse

Methods included from Filters::TranslationFilters

#t

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, options = @markup.split.map(&:strip)
  options ||= ""

  t(input, options).to_s
end