@App.module "Views", (Views, App, Backbone, Marionette, $, _) ->

  _mixinTemplateHelpers = Marionette.View::mixinTemplateHelpers

  _.extend Marionette.View::,
    addOpacityWrapper: (init = true, options = {}) ->
      _.defaults options,
        className: "opacity"

      @$el.toggleWrapper options, @cid, init

    mixinTemplateHelpers: (target) ->
      target.env = App.config.env()
      target.debug = App.config.get("debug")

      _mixinTemplateHelpers.call(@, target)

    stopProp: (e) ->
      e.stopPropagation()