Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh, I see. Looking further into the docs, I see that a JavaScript expression can be added inside an attribute string:

<a href="page/{p}">page {p}</a>

https://svelte.dev/docs#Attributes_and_props

It seems like a neat design.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: