Blapy demos using json data and Mustache Templating engine with nested blocks

Some of the Blapy features used in this demo:

Blapy Block results in a Table

<tr><td> <p>{{firstname}}:</p> <div id="results2" data-blapy-container="true" data-blapy-container-name="results_level1_{{blapyIndex}}" data-blapy-container-content="results_level1_{{blapyIndex}}" data-blapy-update="json" data-blapy-template-wrap="<table>" data-blapy-template-init="arrayvalues.data.php" data-blapy-template-init-params="{'action':'search','firstname':'{{firstname}}'}" data-blapy-template-mustache-delimiterStart="{%" data-blapy-template-mustache-delimiterEnd="%}" data-blapy-updateblock-ondisplay="true" > <|xmp style="display:none"> <tr><td> <p>{%lastname%}:</p> <div id="results3" data-blapy-container="true" data-blapy-container-name="results_level2_{{blapyIndex}}_{%blapyIndex%}" data-blapy-container-content="results_level2" data-blapy-update="json" data-blapy-template-wrap="<table>" data-blapy-template-init="arrayvalues.data.php" data-blapy-template-init-params="{'action':'search','lastname':'{%lastname%}'}" data-blapy-template-mustache-delimiterStart="{$" data-blapy-template-mustache-delimiterEnd="$}" data-blapy-template-init-processdata="ShouldNinaTalk" data-blapy-updateblock-ondisplay="true" > <||xmp style="display:none"> <tr><td> <h1>Block {{blapyIndex}} {%blapyIndex%} {$blapyIndex$}</h1> <p> Well... it is really the firstname: {$firstname$} !</p> <script> //call the script only if we are in the blapy block results_level2_2_1... if ("results_level2_{{blapyIndex}}_{%blapyIndex%}" == "results_level2_2_1") $('#myBlapy').trigger('alertUs','Yes really it is {$firstname$} {%lastname%}') if ({$NinaShouldTalk$} == "1") $('#myBlapy').trigger('alertUs','{$firstname$} is there!') </script> </td></tr> <||/xmp> </div> <div id="results4" data-blapy-container="true" data-blapy-container-name="results_level2bis_{{blapyIndex}}_{%blapyIndex%}" data-blapy-container-content="results_level2bis" data-blapy-update="json" data-blapy-template-init="arrayvalues.data.php" data-blapy-template-init-params="{'action':'search','lastname':'{%lastname%}'}" data-blapy-template-mustache-delimiterStart="{$" data-blapy-template-mustache-delimiterEnd="$}" data-blapy-updateblock-ondisplay="true" data-blapy-template-file="results.tpl" > </div> </td></tr> <|/xmp> </div> </td></tr>