Introduce 'serve' command
Closed this issue · 1 comments
allejo commented
As the watch
command has been phased out in 0.2, it will be replaced with a serve
command instead. The general overview of how it'll work:
- Read all of the files of the stakx website
- Build a URL Router (with parameters) from all the PageView URLs
- Start a web server
- For each URL request, load the PageView and whatever content is needed
Benefits
- No longer need to build the entire website (still need to process most of it)
- No longer face issues with Twig cache busting, just reload the page
- No need for a separate server to test your stakx website