Html/Javascript templates loading
- Templates are loaded on application loaded and added in the hidden div #html-fragments.
+ Templates are loaded on application loaded and added in the hidden div <<#html-fragments>>.
They are loaded using requirejs and the text plugin.
);
+-------------------------
- Note some templates which are only simple html which only need i18n are executed immediatly the others are only inserted in #html-fragments.
\ No newline at end of file
+* i18n in templates
+
+** static templates
+
+ Some templates which are only simple html which only need i18n are executed immediatly.
+
+ Simply use:
+
++-------------------------
+ $.tmpl( menu, $.i18n.map ).appendTo("#html-fragments");
+ to get i18n values in your template you can use
+ ${register} or ${$.i18n.prop('register')}
++-------------------------
+
+
+** dynamic templates
+
+ The others are only inserted in #html-fragments.
\ No newline at end of file