Skip to content

Commit c2a3bef

Browse files
authored
Merge pull request #7 from matteodem/patch-1
Add js and html typehints to snippets in README
2 parents 3c77a67 + 626d8df commit c2a3bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ note: all code is ES6
55

66
Template
77

8-
```
8+
```html
99
<template name="helloworld">
1010
<button onclick={{sayHi}}>Say Hi!</button>
1111
<button onclick={{reset}}>reset</button>
@@ -16,7 +16,7 @@ Template
1616

1717
Event handlers
1818

19-
```
19+
```js
2020
Template.helloworld.events({
2121
sayHi (e, t) {
2222
console.log('event and templateInstance params', e, t)

0 commit comments

Comments
 (0)