lib/roda/plugins/precompile_templates.rb
# Freeze the template caches.  Should be called after precompiling all templates during
# application startup, if you don't want to allow templates to be cached at runtime.
# In addition to ensuring that no templates are compiled at runtime, this also speeds
# up rendering by freezing the template caches, so that a mutex is not needed to access
# them.
Freeze the template caches.  Should be called after precompiling all templates during
application startup, if you don't want to allow templates to be cached at runtime.
In addition to ensuring that no templates are compiled at runtime, this also speeds
up rendering by freezing the template caches, so that a mutex is not needed to access
them.
Freeze the template caches . Should be called after precompiling all templates during application startup if you don ' t want to allow templates to be cached at runtime . In addition to ensuring that no templates are compiled at runtime this also speeds up rendering by freezing the template caches so that a mutex is not needed to access them .
def freeze_template_caches!
          _freeze_layout_method
          opts[:render] = render_opts.merge(
            :cache=>render_opts[:cache].freeze,
            :template_method_cache=>render_opts[:template_method_cache].freeze,
          ).freeze
          self::RodaCompiledTemplates.freeze
          nil
        end
def freeze_template_caches! _freeze_layout_method opts [ :render ] = render_opts . merge ( :cache => render_opts [ :cache ] . freeze , :template_method_cache => render_opts [ :template_method_cache ] . freeze , ) . freeze self :: RodaCompiledTemplates . freeze nil end
Freeze the template caches.
Freeze the template caches .