diff --git a/README.md b/README.md index 26608ce9..54a5b83d 100644 --- a/README.md +++ b/README.md @@ -73,8 +73,10 @@ To use WebUI, ensure you have the following installed: ### Script +If you pass no template the static one will be used by default and if you pass no project name it will default to `web-ui-template` + ```sh -curl -fSls https://raw.githubusercontent.com/maclong9/web-ui/refs/heads/main/initialize.sh | sh +curl -fSls https://raw.githubusercontent.com/maclong9/web-ui/refs/heads/main/initialize.sh | sh -s -- --template [static|server] [] ``` ### Manually diff --git a/Sources/WebUI/Elements/Base/List.swift b/Sources/WebUI/Elements/Base/List.swift index fdb240b6..9b780996 100644 --- a/Sources/WebUI/Elements/Base/List.swift +++ b/Sources/WebUI/Elements/Base/List.swift @@ -18,9 +18,9 @@ public enum ListType: String { /// /// HTML supports various styles for list elements, such as disc, circle, or square. /// This enum provides a type-safe way to specify which style to use. -public enum StyleType: String { +public enum ListStyle: String { /// Creates a list with no bullets or numbers. - case none + case none = "" /// Creates a list with bullets shaped like discs. case disc @@ -29,7 +29,7 @@ public enum StyleType: String { case circle /// Creates a list with bullets shaped like squares. - case square + case square = "[square]" } /// Generates HTML list elements (`