Sha256: 5bc7c6117c154e6d4b6fdf581d5e762ced9e286d0ed325b85d5b4008293bfeee

Contents?: true

Size: 442 Bytes

Versions: 13

Compression:

Stored size: 442 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
require 'mustache'

class DotNotation < Mustache
  self.path = File.dirname(__FILE__)

  def person
    return {
      :name => OpenStruct.new(:first => 'Chris', :last => 'Firescythe'),
      :age  => 24,
      :hometown => {
        :city  => "Cincinnati",
        :state => "OH"
      }
    }
  end

  def normal
    "Normal"
  end
end

if $0 == __FILE__
  puts DotNotation.to_html
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
mustache-0.99.8 test/fixtures/dot_notation.rb
mustache-0.99.7 test/fixtures/dot_notation.rb
mustache-0.99.6 test/fixtures/dot_notation.rb
mustache-0.99.5 test/fixtures/dot_notation.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/dot_notation.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/dot_notation.rb
mustache-bibanon-0.99.5 test/fixtures/dot_notation.rb
mustache-0.99.4 test/fixtures/dot_notation.rb
mustache-0.99.3 test/fixtures/dot_notation.rb
mustache-0.99.2 test/fixtures/dot_notation.rb
mustache-0.99.1 test/fixtures/dot_notation.rb
mustache-0.99.0 test/fixtures/dot_notation.rb
mustache-0.98.0 test/fixtures/dot_notation.rb