JavaScript vanilla page router
As ES6 is the de-facto standard for web browsers, nowadays things like jQuery
and $.ajax()
calls are outdated. But I still think something is missing from
the ES6 Web API, something which fills the gap of reactive DOM updates,
making a unified dynamic web app experience impossible without loads of
boilerplate.
In my opinion, this gap should be filled by client-side templating engines, which do a wonderful job at it (see mustache.js) without requiring loads of code to start up or even a build step.
But the glue to make these templating engines actually work on page loads dynamically is at times cumbersome and repetitive.
route66 is a small, self-contained Javascript library to do just that:
- create dynamic pages which execute Javascript on reload
- make the frontend server agnostic (you can serve everything as a static bundle)
The code with the documentation resides here.
reply via email→