Sha256: 83092e0fb7af1bb192b62d1b01db91f4845614b20d9c74e7a83f93c71d3766f8
Contents?: true
Size: 504 Bytes
Versions: 5
Compression:
Stored size: 504 Bytes
Contents
module SimpleNavigation module Adapters class Padrino < Sinatra def self.register SimpleNavigation.set_env(PADRINO_ROOT, PADRINO_ENV) ::Padrino::Application.send(:helpers, SimpleNavigation::Helpers) end def link_to(name, url, options={}) context.link_to(name, url, options) end def content_tag(type, content, options={}) context.content_tag(type, content.html_safe, options) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems