Sha256: 3bf3b58b79a81d2530c86889365dcded8c267e7abe432e765b0c987bb5828628

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

require 'mustache/sinatra/version'
require 'mustache'
require 'mustache/sinatra/helpers'

class Mustache
  module Sinatra

    # Called when you `register Mustache::Sinatra` in your Sinatra app.
    def self.registered(app)
      app.helpers Mustache::Sinatra::Helpers
    end
  end
end

Sinatra.register Mustache::Sinatra

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mustache-sinatra-2.0.0 lib/mustache/sinatra.rb
mustache-sinatra-1.0.1 lib/mustache/sinatra.rb