Sha256: 09316d213e7ad07596e0cc810b05f26c8682c173e70fcdec63e96cee55799b49

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

require 'tilt/template'

module Roy
  class RoyTemplate < Tilt::Template
    self.default_mime_type = 'application/javascript'

    def self.engine_initialized?
      true
    end

    def initialize_engine
    end

    def prepare
      @engine = RoyEngine.new(@file, options)
    end

    def evaluate(scope, locals, &block)
      @output ||= @engine.compile(data)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roy-rails-0.0.2 lib/roy/roy_template.rb