> Cool, thanks for sharing. I like the KISS approach.

Admittedly, the KISS approach is probably a product of my inexperience with Nim 
rather than any sort of design decision.

> I'd like to see dynamic routes, redirects and static file handling along the 
> lines of python's bottle:

Dynamic routes are something I'm working on. I'm not sure if I want to use 
regex or native Nim types. Redirects will be implemented through the `Router` 
type. I'm going to add namespaces and names to routes ala Django's router. That 
way, you can generate a url for links or redirects like so: 
`myRouter.url("namespace:name", id=2)`. I'm thinking that templates should have 
the `Router` object injected by default so link generation is super simple.

Static file handling tends to be more difficult than it appears on the surface 
based on my own personal experience working in web development for 5 years. Not 
so much actually serving the files, but more about creating a friendly api for 
configuring static file storage. I'll take a look at how Bottle does it for 
some ideas. I work extensively with Django and Flask, so a lot of my ideas are 
inspired by those frameworks. From my understanding Bottle is very similar to 
Flask.

Reply via email to