Sha256: 374dd98678ab138aaa24393ee8df57562cdd52d0f884c492576691ce106c09d2

Contents?: true

Size: 455 Bytes

Versions: 27

Compression:

Stored size: 455 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
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

27 entries across 27 versions & 4 rubygems

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