Skip to content

Commit f9a93e3

Browse files
committed
update README.md
1 parent a033999 commit f9a93e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module: {
2020

2121
## Example
2222

23-
``` javascript
23+
``` html
2424
// ES6 template string HTML
2525
const template = data => `
2626
<!-- section start -->
@@ -42,10 +42,15 @@ const template = data => `
4242
</section>
4343
<!-- section end -->
4444
`;
45+
```
4546

47+
``` javascript
4648
// babel => uglify
4749
function(n,t){"use strict";var e=function(n){return"\n <!-- section start -->\n <section>\n <h3>"+n.title+"</h3>\n <div>"+n.date+"</div>\n <dl>\n <dt>Coffee</dt>\n <dt>Black hot drink</dt>\n <dt>Milk</dt>\n <dd>\n <ul>\n "+n.list.map(function(n){return"\n <li>"+n+"</li>\n "}).join("")+"\n </ul>\n </dd>\n </dl>\n </section>\n <!-- section end -->\n"};
50+
```
4851
52+
``` javascript
4953
// babel => template-string-optimize => uglify
5054
function(t,e){"use strict";var i=function(t){return"<section><h3>"+t.title+"</h3><div>"+t.date+"</div><dl><dt>Coffee</dt><dt>Black hot drink</dt><dt>Milk</dt><dd><ul>"+t.list.map(function(t){return"<li>"+t+"</li>"}).join("")+"</ul></dd></dl></section>"};
5155
```
56+

0 commit comments

Comments
 (0)