diff --git a/README.md b/README.md index b7c5744..480c1be 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,57 @@ -Thymeleaf Component Dialect -=========================== +
+
+
A dialect for creating reusable Thymeleaf components with named slots, similar to React or Vue components.
-- Java 17+ -- Thymeleaf 3.1+ +## Quick Example -Installation ------- +**Define** a component (`templates/components/panel.html`): -Add the jitpack repository. +```html +Hello world
+Hello world
This is my first thymeleaf component
-This is my first thymeleaf component
-This content replaces the tc:content tag.
+This content replaces the tc:content tag.
+Something went wrong.
+Something went wrong.
+
+
+
This goes into the default slot (main).
+This goes into the default slot (main).
+Body content here
+Body content here
+This goes into the default slot
+This goes into the default slot
+