This repository has been archived by the owner on Sep 24, 2021. It is now read-only.
Anchor tag point to page #23
Labels
client-side-routing
The routing done for SPA
enhancement
New feature or request
templating
Syntax around writing templates
Currently to do client side routing you must manually point to a URL and add the
relative
attribute.It would better if rather than having to point at a URL that you could point at a page component instead.
At compile time this would transform the
#to
to ahref
and add the client side routing events.For pages with dynamic URLs e.g.
/some/path/:x
pointing to the page would a function call e.g.:#to="PathWithDynamicPath(this.data.x)"
This would strongly bind URLs to pages and remove the lookup/guesswork with hooking up URLs to pages. Importing the component would be necessary.
Should be fairly easy to implement. There may be some problems with cyclic
#to
s. Also pointing to the current page but under a different URL argument would require #21The text was updated successfully, but these errors were encountered: