From dee852efb93ee8bb50fb9e1fc5ff9c8a1156c0e3 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 20 Apr 2026 14:44:06 +0545 Subject: [PATCH] feat(src/djinit/core): add Tailwind and HTMX configuration flags to ProjectMetadata **New Features** - Add `use_tailwind` and `use_htmx` boolean fields to `ProjectMetadata` with defaults set to `False`. - Update `ProjectMetadata.__init__` mapping to include these new attributes, ensuring they are persisted in project metadata. --- src/djinit/core/types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/djinit/core/types.py b/src/djinit/core/types.py index a70454c..da65e67 100644 --- a/src/djinit/core/types.py +++ b/src/djinit/core/types.py @@ -15,6 +15,8 @@ class ProjectMetadata: nested_dir: str | None = None use_database_url: bool = False database_type: str = "postgresql" + use_tailwind: bool = False + use_htmx: bool = False predefined_structure: bool = False unified_structure: bool = False single_structure: bool = False @@ -29,6 +31,8 @@ class ProjectMetadata: "nested_dir": self.nested_dir, "use_database_url": self.use_database_url, "database_type": self.database_type, + "use_tailwind": self.use_tailwind, + "use_htmx": self.use_htmx, "predefined_structure": self.predefined_structure, "unified_structure": self.unified_structure, "single_structure": self.single_structure,