Sha256: 7c585af4976e6ce9e5cb735723b108d4134772ac8cebd41ca04b4230b8162e8b

Contents?: true

Size: 432 Bytes

Versions: 24

Compression:

Stored size: 432 Bytes

Contents

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

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

  def start
    "It worked the first time."
  end

  def middle
    [ { :item => "And it worked the second time." },
      { :item => "As well as the third." } ]
  end

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

if $0 == __FILE__
  puts Delimiters.to_html
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
mustache-0.10.0 test/fixtures/delimiters.rb
mustache-0.9.2 test/fixtures/delimiters.rb
mustache-0.9.1 test/fixtures/delimiters.rb
mustache-0.9.0 test/fixtures/delimiters.rb