HandleBar provides some built-in helpers in the shape of
Block Level Expression. Some of the useful one are
{{#each}},
{{#if}},
{{#unless}} and
{{#with}}. In this
Demo "
We will see how to use these built-in helpers for templating the JSON Data
". Using
{{#each }} we have iterated the student JSON
object array and the hobbies in
string array.
{{#if }} statement is for checking
Truth logic.
{{#unless}} is the reverse of the
{{#if }} logic. The
HTML markup for testing the template scripts are...
Published on October 14, 2013 04:51