# frozen_string_literal: true require "pakyow/support/extension" module Pakyow module Presenter class Renderer module Behavior module Assets module InstallAssets extend Support::Extension apply_extension do build do |view, app:| if head = view.head packs = app.packs(view) if app.is_a?(Plugin) packs = app.parent.packs(view).concat(packs) end packs.uniq { |pack| pack.public_path }.each do |pack| if pack.javascripts? head.object.append_html("\n") end if pack.stylesheets? head.object.append_html("\n") end end end end end end end end end end end