0

What would be the best way in svelte/sapper to do same thing as handlebars.js with-helper does. https://handlebarsjs.com/block_helpers.html Thank you!

4

1 回答 1

1

There's no equivalent, you just refer to properties directly. If there's a complex expression that you need to use repeatedly, you can encapsulate it as a computed property.

于 2018-04-16T12:08:02.837 回答