
Say goodbye to the web template hell. Generate your HTML5 website technically optimized and always valid. Without leaving Rust source.
This is the adjusted Rust implementation of the PHP version of lewp.
If you have questions, want to contribute or have any other type of request, your invited to create an issue or visit the openprobst.dev discord server.
Many frameworks already exist that support developers in creating websites and -apps in various languages, eg. Laravel, Symfony, or Django just to name a few. They usually follow the MVC pattern. You can create a controller for every route and add a model as well as a view for this, all in separate folders. So far, nothing new, a well known and proven concept. However, several problems can arise regarding e.g. code quality, re-usability as well as best practices of SEO and much more. The architecture of these frameworks can lead developers to become inconsistent considering their code structure. Because the files are spread over the whole project, the reusability of code can easily suffer. In addition to that, the usage of templating systems like Twig can make the developer create invalid HTML code without recognizing it or create problems relating to for example page loading times (which is a crucial factor), the critical rendering path or avoiding "extra whitespace between HTML tags to avoid browser rendering quirks under some circumstances". In the latter (a cite from the Twig documentation), Twig has a property to prevent this, but you need to explicitly enable it and "its performance is directly related to the text size you are working on". Developing in these environments can run the risk of spreading those problems over your whole project, making it almost impossible to recover from without rewriting your code base.
So the idea was to create a framework that tries to minimize the impact of the stated problems without making compromises on the comfort of programming.
Therefore, lewp focuses on
lewp generates a highly optimized HTML web page and provides automatic handling of your CSS code (and your JavaScript soon) if you want to. Have a look at the examples folder for more information about how to use it.
❗ lewp is not a webserver. It is a framework that supports you in structuring your algorithms bringing them perfectly in line with your view, without letting your code get messy! It perfectly integrates with frameworks like rocket or actix-web.
divRuntimeInformation available<head> modules onlydiv tag can be disabled (recommended only for <head> modules)/ in IDs.. in IDs<head> tag if files are available.toml filesUnless explicitly stated, any contribution intentionally submitted for inclusion in this project, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.
Please have a look at [CONTRIBUTING.md] for guidelines and conventions.
Licensed under either of
at your option.
$ claude mcp add lewp-rs \
-- python -m otcore.mcp_server <graph>