Full Changelog: v0.2.0...v0.3.0
This release brings several new features.
It also adds the following crates as dependencies:
-
lewp-selectors
, a forked version of theselectors
crate -
lewp-css
, continuedcss
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 tomodule
instead of alewp-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 thelewp-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.