From 130f9463af5717ab914c9be50b9c2cb7471848e0 Mon Sep 17 00:00:00 2001 From: Matthias Leuffen Date: Sat, 25 Nov 2023 05:17:21 +0100 Subject: [PATCH] sync --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1a366a0..c79ce59 100755 --- a/README.md +++ b/README.md @@ -112,6 +112,17 @@ In the example above, the `layout="use: #header1"` attribute tells JodaStyle to JodaStyle provides several commands for manipulating the DOM using CSS attributes: +| Command | Description | Example Usage | +|-----------------------|-----------------------------------------------------------------------------|-------------------------------------------------------------------------------| +| `--joda-wrap` | Wraps elements with a new element | `.box { --joda-wrap: @row; }` | +| `--joda-use` | Applies a template to the element | `
` | +| `--joda-replace-by` | Replaces the element with the specified template | `--joda-replace-by: @header1;` | +| `--joda-container` | Wraps the element's children with the specified container | `--joda-container: @container;` | +| `--joda-unwrap` | Removes the parent element of the selected element | `--joda-unwrap: true;` | +| `--joda-group` | Groups consecutive elements with the same `--joda-group` value into a wrapper| `--joda-group: @row;` | +| `--joda-class` | Adds classes to the element | `--joda-class: 'new-class';` | +| `--joda-on-empty-class`| Adds a class to the element if it is empty | `--joda-on-empty-class: 'empty';` | + #### Wrap Command The `--joda-wrap` command wraps one or more consecutive elements in a new element: