Sha256: b0a37509507724b50a37dcf5e68d9669caf495da845d61697b01dce00ac82213

Contents?: true

Size: 533 Bytes

Versions: 6

Compression:

Stored size: 533 Bytes

Contents

# encoding: UTF-8

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

module TwitterCldr
  module Js
    module Renderers
      module Shared
        class CalendarRenderer < TwitterCldr::Js::Renderers::Base
          self.template_file = File.expand_path(File.join(File.dirname(__FILE__), "../..", "mustache/shared/calendar.coffee"))

          def calendar
            TwitterCldr::Tokenizers::DateTimeTokenizer.new(:locale => @locale).calendar.to_json
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
twitter_cldr_js-2.2.4 lib/twitter_cldr/js/renderers/shared/calendar_renderer.rb
twitter_cldr_js-2.2.3 lib/twitter_cldr/js/renderers/shared/calendar_renderer.rb
twitter_cldr_js-2.2.2 lib/twitter_cldr/js/renderers/shared/calendar_renderer.rb
twitter_cldr_js-2.2.0 lib/twitter_cldr/js/renderers/shared/calendar_renderer.rb
twitter_cldr_js-2.1.0 lib/twitter_cldr/js/renderers/shared/calendar_renderer.rb
twitter_cldr_js-2.0.0 lib/twitter_cldr/js/renderers/shared/calendar_renderer.rb