Sha256: 5a6af9afc4b168a3ce42fb9accc51cb9958e09ea0d09a6479723228707aceb14

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../tokamak.rb') unless defined? ::Tokamak
require "tokamak/hook/tilt"

module Tokamak
  module Hook
    module Sinatra

      module ::Sinatra::Templates

        def tokamak(template, options={}, locals={})
          options.merge! :layout => false, :media_type => response["Content-Type"]
          render :tokamak, template, options, locals
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tokamak-1.2.1 lib/tokamak/hook/sinatra.rb
tokamak-1.2.0 lib/tokamak/hook/sinatra.rb
tokamak-1.1.5 lib/tokamak/hook/sinatra.rb
tokamak-1.1.4 lib/tokamak/hook/sinatra.rb
tokamak-1.1.3 lib/tokamak/hook/sinatra.rb
tokamak-1.1.2 lib/tokamak/hook/sinatra.rb
tokamak-1.0.0.beta4 lib/tokamak/hook/sinatra.rb
tokamak-1.1.1 lib/tokamak/hook/sinatra.rb