2. WDML
Is a rendering method include in WorkerJs as one of its main
component, allow developer to make a dynamic website in natural
way, instead of putting html string in JavaScript code which is very
hustle to manage
3. Advantage
• Flexible variable
• Predictable component
• Can be store and reuse as variable
• Centralized variable as a component
4. WDML
Initiate
Its checking all html tag on the document that has a
param-name or var-name attribute and hide unnecessary view
10. WorkerJs:
Wdml.createVar(
{
text:” hi this is my pic!”,
photo:” pic.jpg”
}
,”View”);
WDML way
Html:
<div>
<img var-name=”View” src=“{photo}”>
<p var-name=”View”>{text}</p>
</div>