Method: Porthole::Sinatra::Helpers#porthole_class
- Defined in:
- lib/porthole/sinatra.rb
#porthole_class(template, options = {}) ⇒ Object
Returns a View class for a given template name.
128 129 130 131 132 |
# File 'lib/porthole/sinatra.rb', line 128 def porthole_class(template, = {}) @template_cache.fetch(:porthole, template) do compile_porthole(template, ) end end |