Sha256: 31f7cc2094e22e0650b65632575872ef14c40e7b646f2a6d27b008439243ca68

Contents?: true

Size: 280 Bytes

Versions: 36

Compression:

Stored size: 280 Bytes

Contents

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

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

  def title
    "Welcome"
  end

  def title_bars
    '-' * title.size
  end
end

if $0 == __FILE__
  puts TemplatePartial.to_html
end

Version data entries

36 entries across 36 versions & 4 rubygems

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