Sha256: 1da0316637a407535a1dfca34f855e23afb135ea0da8d1ce429973d27fad7842

Contents?: true

Size: 371 Bytes

Versions: 9

Compression:

Stored size: 371 Bytes

Contents

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

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

  def first
    "It worked the first time."
  end

  def second
    "And it worked the second time."
  end

  def third
    "Then, surprisingly, it worked the third time."
  end
end

if $0 == __FILE__
  puts Delimiters.to_html
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mustache-0.7.0 test/fixtures/delimiters.rb
mustache-0.5.1 examples/delimiters.rb
mustache-0.5.0 examples/delimiters.rb
mustache-0.4.2 examples/delimiters.rb
mustache-0.4.1 examples/delimiters.rb
mustache-0.4.0 examples/delimiters.rb
mustache-0.3.2 examples/delimiters.rb
mustache-0.3.1 examples/delimiters.rb
mustache-0.3.0 examples/delimiters.rb