.transform()

Previous Next

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

Localisation