def render(name, view_context)
      hooks[name].map do |hook|
        hook.render(view_context)
      end.join("").html_safe
    end
def render(name, view_context)
      hooks[name].map do |hook|
        hook.render(view_context)
      end.join("").html_safe
    end
Public: Renders all the view hooks registered for a given hook `name`.
 Needs a `view_context` parameter, which will almost always be `self` from
 the helper method or the view that calls this.

 The easiest is to call this method from within a Helper:

    module MyViewHooksRenderHelper
      def my_render_hooks(name)
        Decidim.view_hooks.render(name, self)
      end
    end

    def ApplicationController
      helper MyViewHooksRenderHelper
    end

 Then from your views you need to call `my_render_hooks(name)`.

 name - The name of the view hook
 `view_context` - a context to render the view hooks.

 Returns an HTML safe String.