Sha256: 7562d480ed3cd8edfb30a0ec81a7dd0eac6230ffb3c354b472f763aa67d166d2

Contents?: true

Size: 226 Bytes

Versions: 9

Compression:

Stored size: 226 Bytes

Contents

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

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/template_partial.rb
zine_brewer-1.3.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/template_partial.rb
mustache-1.1.1 test/fixtures/template_partial.rb
mustache-1.1.0 test/fixtures/template_partial.rb
mustache-1.0.5 test/fixtures/template_partial.rb
mustache-1.0.3 test/fixtures/template_partial.rb
mustache-1.0.2 test/fixtures/template_partial.rb
mustache-1.0.1 test/fixtures/template_partial.rb
mustache-1.0.0 test/fixtures/template_partial.rb