module TemplateHandlerHelper

Public Instance Methods

with_template_handler(*extensions, handler) { || ... } click to toggle source
# File actionview/test/actionpack/controller/layout_test.rb, line 19
def with_template_handler(*extensions, handler)
  ActionView::Template.register_template_handler(*extensions, handler)
  yield
ensure
  ActionView::Template.unregister_template_handler(*extensions)
end