Trying some things out, got concurrent grunt watch semi build process
working

I'm not sure how the compiling of a website should be implemented. I also
want to load pieces of the website dynamically on demand. This requires
somehow figuring out what needs to be rendered and then retrieving the
templates, code and styles.

You have to start somewhere of course. The base (index.html) looks at the
URL and loads the right page, the right page contains several other
'blocks' which in turn might require other blocks. But what is a block?
It's not just a piece of HTML that needs to be rendered? Its a piece of
html with its styling rules and the code that makes it interactive. Once
the code and styling are injected into the page, the block can be rendered
(multiple times) by the user code that is already there.

So the block framework has to support loading blocks which encompasses
injecting css and js and notifying user code that the block was loaded.
This way the user code can use any kind of framework to render and update
the HTML. The nasty part is having to manually load blocks.

hmm