This is a collection of components for Django and htmx. They are meant to be copy-pasted into your project and customized to your needs.
They're designed to be as simple as possible, so you can easily understand how they work and modify them to your needs. They have very little styling, for the same reason.
urls.py
file in components/
and add the following code:
from django.urls import path urlpatterns = []Then import this file in your project's
urls.py
file:
from django.urls import path, include urlpatterns = [ path('components/', include('components.urls')), ]This step simplifies adding URL patterns for your components and keeps them separate from your project's URL patterns. Then, adding a single-file component to your
components/urls.py
file is as easy as:
from django.urls import path from components.mycomponent import MyComponent urlpatterns = [ path('mycomponent/', MyComponent.as_view()), ]It will handle requests to
/components/mycomponent/
and render the component.components/
folder. Add them to your components/urls.py
file as described above.Contributions are welcome! Please open an issue or pull request if you have a component you'd like to add or a bug to report.
poetry install npm install
This project is licensed under the MIT License. See LICENSE for details.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4