Search code examples
templatesfreemarkerjive

How to access soy file from ftl file


I want to access one of the element in soy file by its id from ftl file. I tried <#include "path to soy file.soy"/> but did not work.

What is the syntax to include/import soy file in ftl file?


Solution

  • Have you tried

    <@soy.render template="" data= />

    https://community.jivesoftware.com/docs/DOC-42113#jive_content_id_Rendering_a_Soy_Template_from_within_a_Freemarker_Template