Sha256: c0406ecbda714389f2cc885dc2f3ec71f13cc8991796228418fa058a12d37012
Contents?: true
Size: 617 Bytes
Versions: 7
Compression:
Stored size: 617 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 # Returns an instance of the Site def site Massimo.site end # Renders a view with the given locals. Kind of like `render :partial` in Rails def render(view_name, locals = {}) view = Massimo::View.find(view_name) view && view.render(locals) end end end
Version data entries
7 entries across 7 versions & 1 rubygems