Permalink
Browse files

Introducing viperHTML.define("viper-attribute", callback)

This branch to have features parity with hyperHTML
WebReflection/hyperHTML#257

The main difference is that the callback will receive a null target,
as first argument, since there's no way/reason/meaning in passing
anything else, being viperHTML about Buffer and strings.

Everything else is the same.
  • Loading branch information...
Andrea Giammarchi
Andrea Giammarchi committed Jul 28, 2018
1 parent 270676c commit 73504a7dc83ca4fb1d426c548918e3fc85af389b
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -22,22 +22,22 @@ <h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>254/254</span>
<span class='fraction'>260/260</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>166/166</span>
<span class='fraction'>172/172</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>65/65</span>
<span class='fraction'>67/67</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>241/241</span>
<span class='fraction'>247/247</span>
</div>
</div>
</div>
@@ -62,13 +62,13 @@ <h1>
<td class="file high" data-value="viperHTML/"><a href="viperHTML/index.html">viperHTML/</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="254" class="abs high">254/254</td>
<td data-value="260" class="abs high">260/260</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="166" class="abs high">166/166</td>
<td data-value="172" class="abs high">172/172</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="65" class="abs high">65/65</td>
<td data-value="67" class="abs high">67/67</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="241" class="abs high">241/241</td>
<td data-value="247" class="abs high">247/247</td>
</tr>
</tbody>
@@ -77,7 +77,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Jul 23 2018 20:15:54 GMT+0200 (CEST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jul 28 2018 21:02:30 GMT+0200 (CEST)
</div>
</div>
<script src="prettify.js"></script>
@@ -211,7 +211,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Jul 23 2018 20:15:54 GMT+0200 (CEST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jul 28 2018 21:02:30 GMT+0200 (CEST)
</div>
</div>
<script src="../prettify.js"></script>
@@ -22,22 +22,22 @@ <h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>254/254</span>
<span class='fraction'>260/260</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>166/166</span>
<span class='fraction'>172/172</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>65/65</span>
<span class='fraction'>67/67</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>241/241</span>
<span class='fraction'>247/247</span>
</div>
</div>
</div>
@@ -75,13 +75,13 @@ <h1>
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="218" class="abs high">218/218</td>
<td data-value="224" class="abs high">224/224</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="147" class="abs high">147/147</td>
<td data-value="153" class="abs high">153/153</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="54" class="abs high">54/54</td>
<td data-value="56" class="abs high">56/56</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="208" class="abs high">208/208</td>
<td data-value="214" class="abs high">214/214</td>
</tr>
</tbody>
@@ -90,7 +90,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Jul 23 2018 20:15:54 GMT+0200 (CEST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jul 28 2018 21:02:30 GMT+0200 (CEST)
</div>
</div>
<script src="../prettify.js"></script>
Oops, something went wrong.

0 comments on commit 73504a7

Please sign in to comment.