You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ROADMAP.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,21 @@ Below are a bunch of features I'd like to bring to django-bird.
4
4
5
5
I have included code snippets where applicable, but they are back-of-the-napkin sketches of potential APIs -- subject to change if and when the feature is actually introduced.
6
6
7
-
## Static Asset Collection
7
+
## Static Asset Collection 🏗️
8
+
9
+
> [!NOTE]
10
+
> django-bird [v0.6.0](https://github.com/joshuadavidthomas/django-bird/releases/tag/v0.6.0) introduced automatic asset management via `{% bird:css %}` and `{% bird:js %}` templatetags. The current implementation automatically discovers and loads CSS and JS files that match your component names:
11
+
>
12
+
> ```bash
13
+
> templates/bird/button/
14
+
> ├── button.css # Automatically loaded by {% bird:css %}
15
+
> ├── button.html # Component template
16
+
> └── button.js # Automatically loaded by {% bird:js %}
17
+
>```
18
+
>
19
+
> Future versions should eventually add support for inline styles and scripts with proper component scoping, compilation, and bundling.
20
+
>
21
+
> See the [docs](https://django-bird.readthedocs.io/en/latest/assets.html) for more information.
8
22
9
23
This is table stakes for a modern Django template component library. The goal is to allow you to define CSS and JS for a component and have it loaded automatically when you use that component.
10
24
@@ -113,6 +127,14 @@ To give you an idea of what the final compiled output might look like, here's a
113
127
</html>
114
128
```
115
129
130
+
>**Update, 2024-12-03**
131
+
> The current implementation handles basic asset discovery and loading, but future enhancements will include:
132
+
>
133
+
> - Inline style and script support with component scoping
134
+
> - Asset compilation and bundling
135
+
> - The `$bird` variable for component-specific JavaScript
0 commit comments