Sha256: e153c7d3b9119533abc72ced8b68f78afc09c5abab5b936efbcfbf6111b4a141

Contents?: true

Size: 323 Bytes

Versions: 41

Compression:

Stored size: 323 Bytes

Contents

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

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

  def name
    "Chris"
  end

  def value
    10_000
  end

  def taxed_value
    value - (value * 0.4)
  end

  def in_ca
    true
  end
end

if $0 == __FILE__
  puts Simple.to_html
end

Version data entries

41 entries across 41 versions & 4 rubygems

Version Path
mustache-0.99.8 test/fixtures/simple.rb
mustache-0.99.7 test/fixtures/simple.rb
mustache-0.99.6 test/fixtures/simple.rb
mustache-0.99.5 test/fixtures/simple.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/simple.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/simple.rb
mustache-bibanon-0.99.5 test/fixtures/simple.rb
mustache-0.99.4 test/fixtures/simple.rb
mustache-0.99.3 test/fixtures/simple.rb
mustache-0.99.2 test/fixtures/simple.rb
mustache-0.99.1 test/fixtures/simple.rb
mustache-0.99.0 test/fixtures/simple.rb
mustache-0.98.0 test/fixtures/simple.rb
mustache-0.13.0 test/fixtures/simple.rb
mustache-0.12.1 test/fixtures/simple.rb
mustache-0.12.0 test/fixtures/simple.rb
angry_mob_common_targets-0.1.0 vendor/mustache/test/fixtures/simple.rb
mustache-0.11.2 test/fixtures/simple.rb
mustache-0.11.1 test/fixtures/simple.rb
mustache-0.11.0 test/fixtures/simple.rb