headwirecom / peregrine-cms

an api first, head optional cms with based on vuejs and apache sling
Apache License 2.0
52 stars 31 forks source link

Server Side HTL (pagerenderer/server) #618

Open cmrockwell opened 4 years ago

cmrockwell commented 4 years ago

HTL Use Case Overview

How to incorporate HTL Sightly? It may be common problem, because devs might need to use HTL instead of Vue rendering on the clientside. An HTL theme could grow and be supported as it would serve as an example removing a barrier migrating htl apps.

Current Condition

Peregrine CMS has server side rendering support from peregrine-cms/pagerenderer/server

Problems and purpose of this ticket

The purpose of this ticket is to Fix the deployment issues deploying this module peregrine-cms/pagerenderer/server to develop-sling12.

cmrockwell commented 4 years ago

I can add components to the template either through the content packages or Composum, and see the content render in the template when viewed directly. But there seems to be fundamental piece missing that should merge the template content to the page content. When I view pages based on the template, I do not see the added template content.

Should this class be used by the page/Helper.java?

https://github.com/headwirecom/peregrine-cms/blob/develop/platform/base/core/src/main/java/com/peregrine/nodetypes/merge/PageMerge.java