Module: Racket::Utils::Views
- Included in:
- ToolBelt
- Defined in:
- lib/racket/utils/views.rb,
lib/racket/utils/views/renderer.rb,
lib/racket/utils/views/template_cache.rb,
lib/racket/utils/views/template_locator.rb,
lib/racket/utils/views/template_resolver.rb
Overview
Namespace for view utilities
Defined Under Namespace
Classes: Renderer, TemplateCache, TemplateLocator, TemplateResolver
Class Method Summary collapse
-
.extract_template_settings(context, template_settings) ⇒ Hash
Extracts what template settings to use based on context and incoming parameters.
Class Method Details
.extract_template_settings(context, template_settings) ⇒ Hash
Extracts what template settings to use based on context and incoming parameters.
35 36 37 38 39 40 41 42 43 |
# File 'lib/racket/utils/views.rb', line 35 def self.extract_template_settings(context, template_settings) if context.respond_to?(:view_settings) && !template_settings context.view_settings elsif template_settings template_settings else {} end end |