Skip to content

Commit a9bc642

Browse files
committed
Update CoffeeScript example
1 parent dd18588 commit a9bc642

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

client/ui/Post.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
</template>
66

77
<script lang="coffee">
8-
`import {Meteor} from 'meteor/meteor'`
8+
import { Meteor } from 'meteor/meteor'
99
10-
return {
10+
return
1111
props: [ 'data' ]
1212
methods:
1313
removePost: ->
1414
Meteor.call 'posts.remove', @data._id
1515
created:
1616
console.log 'Post'
17-
}
1817
</script>
1918

2019
<!-- Project path test -->

packages/vue-coffee/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ This meteor package adds [coffee-script](http://coffeescript.org/) support in yo
1313

1414
```html
1515
<script lang="coffee">
16-
`import {Meteor} from 'meteor/meteor'`
16+
import { Meteor } from 'meteor/meteor'
1717
18-
return {
18+
return
1919
props: [ 'data' ]
20-
methods: removePost: ->
21-
Meteor.call 'posts.remove', @data._id
22-
return
23-
}
20+
methods:
21+
removePost: ->
22+
Meteor.call 'posts.remove', @data._id
2423
</script>
2524
```
2625

0 commit comments

Comments
 (0)