Sha256: bfc286e0535bf1ab25c9e382b8269d84badc63a732161e2a33ee9591d8ad98db
Contents?: true
Size: 933 Bytes
Versions: 20
Compression:
Stored size: 933 Bytes
Contents
module Coco module IntegrationHelper def coco_stylesheet_tag(dev: ENV["COCO_PATH"], **) stylesheet_link_tag("coco#{"/dev" if dev}/coco", **) 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(dev: ENV["COCO_PATH"], **opts) File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/coco.css") end def javascript_file_path(dev: ENV["COCO_PATH"], **opts) File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/coco.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
20 entries across 20 versions & 1 rubygems