kaleidawave / prism

(No longer in development). Experimental compiler for building isomorphic web applications with web components.
MIT License
110 stars 1 forks source link

Allow page to match on multiple route patterns #6

Closed kaleidawave closed 4 years ago

kaleidawave commented 4 years ago

It would be cool if the @Page decorator could have multiple arguments for each URL pattern it matches on.

e.g.

@Page("*", "/error")
@Page("/upload", "/upload-post")

Should be quite simple, just repeat the entry on Router.routes with a different regexp