Sha256: b790fa73d1a4a181650b6fde0b53460f7882dfda946d75732bbc48ee068a65f8
Contents?: true
Size: 592 Bytes
Versions: 11
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true module Proscenium module SideLoad::Helper def side_load_stylesheets return unless Proscenium::Current.loaded out = [] Proscenium::Current.loaded[:css].delete_if do |path| out << stylesheet_link_tag(path) end out.join("\n").html_safe end def side_load_javascripts(**options) return unless Proscenium::Current.loaded out = [] Proscenium::Current.loaded[:js].delete_if do |path| out << javascript_include_tag(path, options) end out.join("\n").html_safe end end end
Version data entries
11 entries across 11 versions & 1 rubygems