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.99.8 test/fixtures/delimiters.rb
mustache-0.99.7 test/fixtures/delimiters.rb
mustache-0.99.6 test/fixtures/delimiters.rb
mustache-0.99.5 test/fixtures/delimiters.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/delimiters.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/delimiters.rb
mustache-bibanon-0.99.5 test/fixtures/delimiters.rb
mustache-0.99.4 test/fixtures/delimiters.rb
mustache-0.99.3 test/fixtures/delimiters.rb
mustache-0.99.2 test/fixtures/delimiters.rb
mustache-0.99.1 test/fixtures/delimiters.rb
mustache-0.99.0 test/fixtures/delimiters.rb
mustache-0.98.0 test/fixtures/delimiters.rb
mustache-0.13.0 test/fixtures/delimiters.rb
mustache-0.12.1 test/fixtures/delimiters.rb
mustache-0.12.0 test/fixtures/delimiters.rb
angry_mob_common_targets-0.1.0 vendor/mustache/test/fixtures/delimiters.rb
mustache-0.11.2 test/fixtures/delimiters.rb
mustache-0.11.1 test/fixtures/delimiters.rb
mustache-0.11.0 test/fixtures/delimiters.rb