Sha256: 59fbeddcdbc6f0de669f78383fb53ec020e71fb49b738e7ba8bb85b742f4a8cb
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
# frozen_string_literal: true module Archangel module Liquid module Tags ## # Text direction custom tag for Liquid # # Example # {% text_direction %} #=> "ltr" # class TextDirectionTag < ApplicationTag ## # Render the text direction for the theme # # @param context [Object] the Liquid context # @return [String] the text direction # # :reek:UtilityFunction def render(context) context.registers[:view].text_direction end end end end end ::Liquid::Template.register_tag("text_direction", Archangel::Liquid::Tags::TextDirectionTag)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.3.0 | lib/archangel/liquid/tags/text_direction_tag.rb |