Sha256: 62e1ffc8c5037dcbf5f08e8a1a277ba41d8f8cab8eea991439f92b4118580051

Contents?: true

Size: 347 Bytes

Versions: 8

Compression:

Stored size: 347 Bytes

Contents

require 'handlebars'

module Stache
  module Handlebars
    #
    # A Convienent Base Class for the views. Subclass this for autoloading magic with your templates.
    class View < ::Handlebars::Context
      attr_accessor :view

      def method_missing(method, *args, &block)
        view.send(method, *args, &block)
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stache-1.2.0 lib/stache/handlebars/view.rb
stache-1.1.1 lib/stache/handlebars/view.rb
stache-1.1.0 lib/stache/handlebars/view.rb
stache-1.0.3 lib/stache/handlebars/view.rb
stache-1.0.2 lib/stache/handlebars/view.rb
stache-1.0.1 lib/stache/handlebars/view.rb
stache-1.0.0 lib/stache/handlebars/view.rb
stache-1.0.0.rc lib/stache/handlebars/view.rb