Sha256: 911b7649d4459c13aec80bb0d4b34babd0d747b2d00eba14601ffbfbed99a784
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
module SimpleNavigation module Adapters class Padrino < Sinatra def self.register SimpleNavigation.set_env(PADRINO_ROOT, RACK_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple-navigation-4.0.0 | lib/simple_navigation/adapters/padrino.rb |
simple-navigation-3.14.0 | lib/simple_navigation/adapters/padrino.rb |