Sha256: 12a909a7f98260e9207467bfbdd3beb10934657c8cdceb916db2644872743bdd

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 Bytes

Contents

require 'mustache'

module TestViews
  class Namespaced < Mustache
    self.path = File.dirname(__FILE__)

    def title
      "Dragon < Tiger"
    end
  end

  class NamespacedWithPartial < Mustache
    self.path = File.dirname(__FILE__)
    self.template = "My opinion: {{>inner_partial}}"

    def title
      "Victory"
    end
  end
end

if $0 == __FILE__
  puts TestViews::Namespaced.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/namespaced.rb
zine_brewer-1.3.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/namespaced.rb
mustache-1.1.1 test/fixtures/namespaced.rb
mustache-1.1.0 test/fixtures/namespaced.rb
mustache-1.0.5 test/fixtures/namespaced.rb
mustache-1.0.3 test/fixtures/namespaced.rb
mustache-1.0.2 test/fixtures/namespaced.rb
mustache-1.0.1 test/fixtures/namespaced.rb
mustache-1.0.0 test/fixtures/namespaced.rb