Skip to content

Instantly share code, notes, and snippets.

namespace :hulk do
desc 'Updates the host applications\' packs (new: entry_points) published from engines'
task :publish_engine_packs do
detected_missing_entry_points = 0
puts "\n"
Dir[Rails.root.join('engines/*/app/javascript/host_entrypoints/*.js')].each do |engine_entry_point|
relative_entrypoint_path = engine_entry_point.sub("#{Rails.root}/", '')
@pgruener
pgruener / master_page.html.erb
Created January 7, 2022 22:49
SpinaCMS Extension for modular master pages as lightweight pagebuilder
# corresponding to the sample theme with the master view_template "master_page"
# this template iterates the sub_pages / descendents of the master_page and renders
# them concatenated:
<% current_page.children.sorted.active.live.each do |page| %>
<%= render_spina_part(page) %>
<% end %>