Sha256: a1199c81f1de49a38770e52acb5860509e4aec299fb7cc19169c56f473cf1f1a
Contents?: true
Size: 496 Bytes
Versions: 6
Compression:
Stored size: 496 Bytes
Contents
require 'rack/utils' # needed for sinatra_more... require 'sinatra_more/markup_plugin' module Massimo module Helpers include SinatraMore::OutputHelpers include SinatraMore::TagHelpers include SinatraMore::AssetTagHelpers include SinatraMore::FormHelpers include SinatraMore::FormatHelpers def site Massimo.site end def render(view_name, locals = {}) view = Massimo::View.find(view_name) view && view.render(locals) end end end
Version data entries
6 entries across 6 versions & 1 rubygems