Sha256: 7719da244d3b254340b04c5f04762ff05bdd3e431ec62056e4491b70748498e4

Contents?: true

Size: 680 Bytes

Versions: 31

Compression:

Stored size: 680 Bytes

Contents

module Coco
  module IntegrationHelper
    def coco_javascript_tag(context, dev: ENV["COCO_PATH"], **opts)
      javascript_include_tag "coco/#{context}#{".dev" if dev}", **opts
    end

    def coco_javascript_file_path(context, dev: ENV["COCO_PATH"])
      File.join(Coco::Engine.root, "app/assets/build/coco/#{context}#{".dev" if dev}.js")
    end

    def coco_stylesheet_tag(context, dev: ENV["COCO_PATH"], **opts)
      stylesheet_link_tag "coco/#{context}#{".dev" if dev}", **opts
    end

    def coco_stylesheet_file_path(context, dev: ENV["COCO_PATH"], **opts)
      File.join(Coco::Engine.root, "app/assets/build/coco/#{context}#{".dev" if dev}.css")
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
coveragebook_components-0.8.2 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.0.beta.3 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.0.beta.2 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.0.beta.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.10 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.9 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.8 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.7 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.6 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.5 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.4 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.3 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.2 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.7.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.6.5 app/helpers/coco/integration_helper.rb
coveragebook_components-0.6.4 app/helpers/coco/integration_helper.rb
coveragebook_components-0.6.3 app/helpers/coco/integration_helper.rb