3 ms·
We should do a better job of clarifying: this isn't Mustache-the-language, it's just using {{ and }} as delimiters. The syntax is simpler than Mustache, and all
by rich_harris 10y ago
We should do a better job of clarifying: this isn't Mustache-the-language, it's just using {{ and }} as delimiters. The syntax is simpler than Mustache, and allows you to use any inline JavaScript expression, which will become fully reactive.
- spraak 10y agoEr, can you explain further with an example? I'm confused about using both something like {{#if}} and pure JS
- rich_harris 10y agoSee e.g. http://bit.ly/2fRcyJq http://bit.ly/2fRcyJq. The {{#if ...}} part is a control flow directive that allows Svelte to understand the structure of your app, but the condition of that if block is just a JS expression
- spraak 10y agoBut it's limited to if, else, and elseif expressions?