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.
This commit is contained in:
sankalp committed 2026-04-20 14:44:06 +05:45
1 parent fc93a54430
commit dee852efb9
1 file changed
+4
+4
View File
@@ -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,