Sha256: c877df5edcb39b0813d44fae9844c08311a093c74a31383cbcb56d7a955c774f

Contents?: true

Size: 666 Bytes

Versions: 20

Compression:

Stored size: 666 Bytes

Contents

module Coco
  module IntegrationHelper
    def coco_javascript_tag(context, dev: ENV["COCO_PATH"], **)
      javascript_include_tag("coco/#{context}#{".dev" if dev}", **)
    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"], **)
      stylesheet_link_tag("coco/#{context}#{".dev" if dev}", **)
    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

20 entries across 20 versions & 1 rubygems

Version Path
coveragebook_components-0.14.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.13.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.13.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.12.2 app/helpers/coco/integration_helper.rb
coveragebook_components-0.12.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.12.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.11.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.10.1.beta.2 app/helpers/coco/integration_helper.rb
coveragebook_components-0.10.1.beta.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.10.1.beta.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.10.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.9.1 app/helpers/coco/integration_helper.rb
coveragebook_components-0.9.0 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.9 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.8 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.7 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.6 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.5 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.4 app/helpers/coco/integration_helper.rb
coveragebook_components-0.8.3 app/helpers/coco/integration_helper.rb