module Roda::RodaPlugins::PrecompileTemplates::ClassMethods
def freeze_template_caches!
up rendering by freezing the template caches, so that a mutex is not needed to access
In addition to ensuring that no templates are compiled at runtime, this also speeds
application startup, if you don't want to allow templates to be cached at runtime.
Freeze the template caches. Should be called after precompiling all templates during
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