mufeedvh / binserve

A fast production-ready static web server with TLS (HTTPS), routing, hot reloading, caching, templating, and security in a single-binary you can set up with zero code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration with other Rust libraries

AMythicDev opened this issue · comments

I would not like to call this an issue (maybe it is) but rather a question. So you describe in the README on how you can use the template_variables key in the binserve.json file to serve variables. This got me a question about how can someone integrate with other Rust libraries like Diesel so that it can interact with a database or maybe something even simple like getting some information from the URL.

I didn't got any links to Documentation and the README didn't said enough so I filled this issue

Thank you @arijit79 for raising this issue. That would be an awesome feature but this project is meant to be a static web server thus won't offer any dynamic features such as interacting with a database or dynamic variables.

The usage here is only applied to static template variables:

  • Website Title
  • Meta Description
  • Meta Keywords
  • etc.

I also have a small plan to write a dynamic web framework on top of this, not sure about the plan but definitely thinking about it with the features you mentioned! 🙌