Sha256: 7d6e512992e8dfd9e840a82b30dea44f85dd4f0dc7a18c07f3406425631407f8
Contents?: true
Size: 561 Bytes
Versions: 77
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Decidim # This module includes helpers to manage view hooks in layout module ViewHooksHelper # Public: Renders all hooks registered as `hook_name`. # # Note: We're passing a deep copy of the view context to allow # us to extend it without polluting the original view context # # @param hook_name [Symbol] representing the name of the hook. # # @return [String] an HTML safe String def render_hook(hook_name) Decidim.view_hooks.render(hook_name, deep_dup) end end end
Version data entries
77 entries across 77 versions & 1 rubygems