Wario

Wario exposes the wario() function that accepts a string and an object and returns the compiled results.
Attributes in templates should be wrapped in {{ and }}.

Basics

    { name: 'Lucian', food: 'biscuits' }
  
    <p>Hello my name is {{name}}! I like eating {{food}}.</p>
  

Arrays

    
      var obj = {
  foods: [
    { foodName: 'Noodles', foodAttribute: 'stringy' },
    { foodName: 'Tacos', foodAttribute: 'crunchy' },
    { foodName: 'Ice cream sandwiches', foodAttribute: 'cold' }
  ]
};
    
      <p>I like eating the following foods:</p>
<ul>
  {{#each foods}}
    <li>{{foodName}} because they are {{foodAttribute}}.</li>
  {{/each}}
</ul>