Sha256: b1f785b15a2183dd37df2b22bd9d9216e221fc8fdf963b4a5627a6cd449afd7f
Contents?: true
Size: 1005 Bytes
Versions: 1
Compression:
Stored size: 1005 Bytes
Contents
module Coco module IntegrationHelper def coco_stylesheet_tag(context = "coco", dev: ENV["COCO_PATH"], **) stylesheet_link_tag("coco#{"/dev" if dev}/#{context}", **) end def coco_stylesheet_file_path(...) IntegrationHelper.stylesheet_file_path(...) end def coco_javascript_file_path(...) IntegrationHelper.javascript_file_path(...) end def coco_tailwind_preset_path(...) IntegrationHelper.tailwind_preset_path(...) end class << self def stylesheet_file_path(context = "coco", dev: ENV["COCO_PATH"], **opts) File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/#{context}.css") end def javascript_file_path(context = "coco", dev: ENV["COCO_PATH"], **opts) File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/#{context}.js") end def tailwind_preset_path File.join(Coco::Engine.root, "app/assets/build/coco/tailwind.preset.js") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coveragebook_components-0.16.0 | app/helpers/coco/integration_helper.rb |