Add PagesController to wcc-contentful-app engine. Apps should now mount the app engine at the bottom of the routes file, ex:
mount WCC::Contentful::App::Engine, at: '/' # replaces get '/*slug', to: 'pages#show'
Provides a default pages/show.html.erb view which renders each section in turn
Provides a components/section partial which renders a section, and can be used as follows if an app chooses to override pages/show:
<% @page.sections&.each_with_index do |section, index|
next if section.nil?
%>
<%= render("components/section",
section_prefixes: "sections-v2", # where to look in the app's view directory before falling back to the gem
section: section,
index: index) %>
<% end %>
pages/show.html.erb
view which renders each section in turncomponents/section
partial which renders a section, and can be used as follows if an app chooses to overridepages/show
:fixes #86