Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Baclet committed Apr 9, 2017
1 parent dc81db0 commit dcb8c43
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ Barbiche requires support of `<template>` element and basic support of `element.
|----------|------------|---------------------|
|Chrome |&ge;26 |**&ge;15** (at least)|
|Firefox |&ge;22 |**&ge;20** |
|IE/Edge |&ge;13 |**&ge;9** |
|IE/Edge |No support |**&ge;9** |
|Opera |&ge;15 |**&ge;11.6** |
|Safari |&ge;9 |**&ge;5.1** |
|Safari |&ge;9 |**&ge;6.2** |


Polyfills, once minified and gzipped, weight an additionnal 3KB.
2 changes: 1 addition & 1 deletion docs/demo.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h4 class="ui horizontal header divider"></h4><h2 id="browser-support">Browser s
</tr>
<tr>
<td>IE/Edge</td>
<td>≥13</td>
<td>No support</td>
<td><strong>≥9</strong></td>
</tr>
<tr>
Expand All @@ -145,7 +145,7 @@ <h4 class="ui horizontal header divider"></h4><h2 id="browser-support">Browser s
<tr>
<td>Safari</td>
<td>≥9</td>
<td><strong>5.1</strong></td>
<td><strong>6.2</strong></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/js/barbiche.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/editor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/test.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions docs/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@
var clone = t.merge({
name: "a"
});
clone.querySelector('#t1').innerHTML.should.equal('<template><span>a</span></template>');
clone.querySelector('template').innerHTML.should.equal('<span>a</span>');
});
});
describe('bb-inert, class and attribute', function() {
Expand All @@ -640,7 +640,11 @@
it('should preserve the template element while looping', function() {
var t = barbiche(barbiche.bbObj('<div id="t1"><template bb-repeat="[1, 2]: \'item\'" bb-inert>{{item}}</template></div>'));
var clone = t.merge();
clone.querySelector('#t1').innerHTML.should.equal('<template>1</template><template>2</template>');
var templates = Array.prototype.slice.call(clone.querySelector('#t1').childNodes);
Should(templates.length).equal(2);
templates.forEach(function(item, index) {
item.innerHTML.should.equal((index + 1) + '');
});
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion docs_src/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

{"name":"Delimiters","template":"<template id=\"custom-delimiters\">\n\t<!--custom delimiters-->\n\t<div>[[text]]</div>\n</template>\n\n<template id=\"escaped-delimiters\">\n\t<!--escaped delimiters-->\n\t<div>\\{\\} \\\\{{text}} \\{\\{plain text\\}\\}</div>\n</template>","js":"var barbiche_bracket = Barbiche({delimiters: ['[', ']']});\ntarget.appendChild(barbiche_bracket('custom-delimiters').merge({\n\t\"text\": \"Hello World!\"\n}));\n\nvar barbiche = Barbiche();\ntarget.appendChild(barbiche('escaped-delimiters').merge({\n\t\"text\": \"Hello World!\"\n}));\n"},

{"name":"Identifiers","template":"<template id=\"identifiers\">\n\t<div>{{text}}</div>\n\t<div>{{`t-e\\{ \\}x-t`}}</div>\n\t<div>{{`\\u03A9 te\\n\\t \\\\\\`\\{\\{xt`}}</div>\n\t<div bb-attr=\"`\\u03A9 te\\n\\t \\\\\\`{{xt`: '\\u03A9'\"></div>\n</template>","js":"var barbiche = Barbiche();\ntarget.appendChild(barbiche('identifiers').merge({\n\t\"text\": \"Hello Earth!\",\n\t\"t-e{ }x-t\": \"Hello Mars!\",\n\t\"\\u03A9 te\\n\\t \\\\`{{xt\": \"Hello Moon!\"\n}));"},
{"name":"Identifiers","template":"<template id=\"identifiers\">\n\t<div>{{text}}</div>\n\t<div>{{`t-e\\{ \\}x-t`}}</div>\n\t<div>{{`\\u03A9 te\\n\\t \\\\\\`\\{\\{xt`}}</div>\n\t<div bb-attr=\"`\\u03A9 te\\n\\t \\\\\\`{{xt`: 'omega'\"></div>\n</template>","js":"var barbiche = Barbiche();\ntarget.appendChild(barbiche('identifiers').merge({\n\t\"text\": \"Hello Earth!\",\n\t\"t-e{ }x-t\": \"Hello Mars!\",\n\t\"\\u03A9 te\\n\\t \\\\`{{xt\": \"Hello Moon!\"\n}));"},

{"name":"Inert","template":"<template id=\"inert\">\n\t<template><p>Not inert template element</p></template>\n\t<template bb-alias=\"text: 'str'\" bb-inert bb-class=\"myClass\" bb-attr=\"myId: 'id'\"><p>{{str}}</p></template>\n</template>","js":"var barbiche = Barbiche();\ntarget.appendChild(barbiche('inert').merge({\n\tmyClass: 'lazy',\n\tmyId: 'art-49',\n\ttext: 'Inert template element'\n}));"}
]
4 changes: 2 additions & 2 deletions docs_src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ Barbiche requires support of `<template>` element and basic support of `element.
|----------|------------|---------------------|
|Chrome |&ge;26 |**&ge;15** (at least)|
|Firefox |&ge;22 |**&ge;20** |
|IE/Edge |&ge;13 |**&ge;9** |
|IE/Edge |No support |**&ge;9** |
|Opera |&ge;15 |**&ge;11.6** |
|Safari |&ge;9 |**&ge;5.1** |
|Safari |&ge;9 |**&ge;6.2** |


Polyfills, once minified and gzipped, weight an additionnal 3KB.

0 comments on commit dcb8c43

Please sign in to comment.