Skip to content

Commit 23fcd56

Browse files
committed
update README.md
1 parent 9235e23 commit 23fcd56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ template string optimize loader module for webpack
1818

1919
## Example
2020

21+
``` javascript
2122
// ES6
2223
const template = data => `
2324
<!-- section start -->
@@ -45,4 +46,6 @@ template string optimize loader module for webpack
4546

4647
// optimized
4748
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>"};
49+
```
50+
4851

0 commit comments

Comments
 (0)