Sha256: 0db6b3184d3840cdbbc3613b950af599b13fefbaf94a394209d467841b3ce76d
Contents?: true
Size: 677 Bytes
Versions: 7
Compression:
Stored size: 677 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 # 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
7 entries across 7 versions & 1 rubygems