Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCU-2009

...

optional

The model can be implemented in Java or via JavaScript. Use models to implement complex logic. The results are available to the template script for rendering on the page.

A Java model is a bean implementing
Template definition

required

Excerpt Include
Template definition
Template definition
nopaneltrue

Template script

required

Excerpt Include
Template scripts
Template scripts
nopaneltrue

Dialog definition

optional

Excerpt Include
Dialog definition
Dialog definition
nopaneltrue

Model

optional

The model is a JavaBean implementing

Javadoc
0info.magnolia.rendering.model.RenderingModel
. Use it to implement complex logic. The model can execute any Java code to retrieve data from the repository or from an external source. The results are available to the template script for rendering on the page.

Hide block
Javadoc resource link
className
Info

...

...

In

...

Info
If developing a Single-page application

the context of developing Single-Page Applications, templating takes form of creating Angular or ReactJS components, which are compiled into a single HTML page.

On the Magnolia side, the rendering of the page is handled by the SPA renderer and the associated SPA helper libraries.For an overview, see the 

For more details, see:

page.


Elements of the Magnolia template mechanism:

...