Sha256: 0cd957e498d20c1f0d57d57a6e736a8a868bcb0e00dfc89f68310a767ab73809

Contents?: true

Size: 651 Bytes

Versions: 4

Compression:

Stored size: 651 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module Js
    module Renderers
      class Bundle < Mustache
        self.template_path = File.expand_path(File.join(File.dirname(__FILE__), "..", "mustache"))
        self.template_file = File.join(self.template_path, "bundle.coffee")
        self.template_extension = "coffee"

        def version
          TwitterCldr::Js::VERSION
        end

        def is_rtl?
          TwitterCldr::Shared::Languages.is_rtl?(self[:locale])
        end

        def current_locale
          self[:locale]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr_js-2.4.0 lib/twitter_cldr/js/renderers/bundle.rb
twitter_cldr_js-2.3.2 lib/twitter_cldr/js/renderers/bundle.rb
twitter_cldr_js-2.3.1 lib/twitter_cldr/js/renderers/bundle.rb
twitter_cldr_js-2.3.0 lib/twitter_cldr/js/renderers/bundle.rb