Sha256: 6a3d60f47ed6633d434b66bee373a03da86f6b743beb7f2ea7db1fa6b54fc201

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

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

9 entries across 9 versions & 2 rubygems

Version Path
zine_brewer-1.5.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/delimiters.rb
zine_brewer-1.3.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/delimiters.rb
mustache-1.1.1 test/fixtures/delimiters.rb
mustache-1.1.0 test/fixtures/delimiters.rb
mustache-1.0.5 test/fixtures/delimiters.rb
mustache-1.0.3 test/fixtures/delimiters.rb
mustache-1.0.2 test/fixtures/delimiters.rb
mustache-1.0.1 test/fixtures/delimiters.rb
mustache-1.0.0 test/fixtures/delimiters.rb