lewp-rs 0.3.0 released - Say goodbye to the web template hell. Generate your HTML5 website technically optimized and always valid.

37 points emirror-de

Documentation
Repository

This release brings several new features.

It also adds the following crates as dependencies:

  • lewp-selectors, a forked version of the selectors crate

  • lewp-css, continued css crate

  • lewp-html

📦 New features

  • Introduced the lewp file hierarchy, see the "fh" module for more information
  • A module wrapper now has the attribute "data-lewp-component" set to "module" instead of a "lewp-module" class attribute
  • The "Component" trait has been added to the file hierarchy. It is now possible to have custom components that deliver content to the website.
  • The "CSS" component has been added. It is now possible to store CSS files in the module folder of the file hierarchy. The files are parsed using the "lewp-css" crate.
  • Only CSS files that are stored directly in the according folder are being used. There is intentionally no recursive processing to make sure the components stay small and maintainable.
  • CSS files are now isolated. Every selector of the parsed CSS stylesheet gets the module id added. Therefore modules cannot interfere each others styles any longer.
  • The new dependency "lewp_html" adds a clean API for creating the DOM.

🐛 Bugfixes

🔨 Breaking changes