Class: Bridgetown::Tags::LocalizationTag

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

Instance Method Summary collapse

Methods included from Filters::LocalizationFilters

#l

Instance Method Details

#render(_context) ⇒ Object



8
9
10
11
# File 'bridgetown-core/lib/bridgetown-core/tags/l.rb', line 8

def render(_context)
  input, format, locale = @markup.split.map(&:strip)
  l(input, format, locale)
end