1 Ax.ext.freemarker.get
Retrieves a catalogued freemarker template from wic_freemarker_templates
1. Ax.ext.freemarker.get
object Ax.ext.freemarker.get ( )
Example
Templates must be registeres in dictionary table wic_freemarker_templates
The following examples uses the template
Copy
<div style="color:red;">${name}</div>
Copy
<script> let tpl = Ax.ext.freemarker.get('test_from_js'); // searches in wic_freemarker_templates let text = tpl.process({name:'John Doe'}) return text; </script>
<div style="color:red;">John Doe</div>