Hi Hay,

I looked into that a little bit.

Basically, adding a templating engine is no biggie. The interfaces to do so are 
relatively straightforward, and there is not that much to implement to get 
basic rendering happening.

The hard work lies in a different area: implementing the hooks back into 
magnolia.

For both JSP and Freemarker there exist "Template Support Objects" and the 
"Templating Components".
- The Template Support Objects are basically just variables which are injected 
into the template's execution context, and allow the template code to access 
the content, the template definition, the model class, the site definition, 
etc...
- The Template Components are things like the newBar, the pageBar and the 
editBars. These are implemented as Tags in JSP or Freemarker Directives in 
Freemarker, and allow the editing-controls to be inserted in the template code.

So for any new Templating Language, you would have to provide an implementation 
of these things. Depending on whether your chosen Templating Language allows 
accessing Java Objects directly, this could be easier or harder.

Regards from Vienna,

Richard



-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Hay (Husky)
Gesendet: Dienstag, 12. Juni 2012 17:32
An: Magnolia User-List
Betreff: [magnolia-user] Other templating languages in Magnolia?

Hi everyone,
we're currently investigating the possibility of using another templating 
language for Magnolia than Freemarker or JSP. Does anyone have any experience 
with replacing the templating language? We're especially interested in 
templating languages that are usable in Javascript as well, such as Mustache or 
Handlebars.

Kind regards,
-- Hay Kranen
Frontend developer
VPRO Digital


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, 
E-mail to: <[email protected]>
----------------------------------------------------------------




----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to