This article covers the transform() function as part of the UI Library.
The UI Library is a mixed bag of Javascript extensions for programming UI controls in USoft web pages. Do not confuse with the structured UDB object model for data exchange between USoft web pages and a Rules Engine.
The transform() function converts a string of handlebar pseudo-code to HTML that can be translated. This can be convenient in client scripts.
Syntax
$.udb.ui.transform( handlebar-pseudo-code )
Example
var s = $.udb.ui.transform("<label>{{'Example'}}</label>");
A possible output of this example is:
<label>
<script class="lang-start" type="text/html">Example</script>
Voorbeeld
<script class="lang-end" type="text/html"/>
</label>
See also getLanguage() and setLanguage().