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
<!-- ALL-CONTRIBUTORS-BADGE - Do not remove or modify above line -->
15
15
16
-
[Unicorn](https://www.django-unicorn.com) adds modern reactive component functionality to your Django templates without having to learn a new templating language or fight with complicated JavaScript frameworks. It seamlessly extends Django past its server-side framework roots without giving up all of its niceties or forcing you to re-building your application. With Django Unicorn, you can quickly and easily add rich front-end interactions to your templates, all while using the power of Django.
16
+
[Unicorn](https://www.django-unicorn.com) adds modern reactive component functionality to your Django templates without having to learn a new templating language or fight with complicated JavaScript frameworks. It seamlessly extends Django past its server-side framework roots without giving up all of its niceties or forcing you to rebuild your application. With Django Unicorn, you can quickly and easily add rich front-end interactions to your templates, all while using the power of Django.
17
+
18
+
**[https://www.django-unicorn.com](https://www.django-unicorn.com) has extensive documentation, code examples, and more!**
17
19
18
20
## ⚡ Getting started
19
21
@@ -61,12 +63,12 @@ urlpatterns = (
61
63
62
64
### 5. [Create a component](https://www.django-unicorn.com/docs/components/)
`Unicorn` uses the term "component" to refer to a set of interactive functionality that can be put into templates. A component consists of a Django HTML template and a Python view class which contains the backend code. After running the management command, two new files will be created:
script_tag.string=f"if (typeof Unicorn === 'undefined') {{ console.error('Unicorn is missing. Do you need {{% load unicorn %}} or {{% unicorn_scripts %}}?') }} else {{ {init_script} }}"
197
+
script_tag.string=f"if (typeof Unicorn === 'undefined') {{ console.error('Unicorn is missing. Do you \
198
+
need {{% load unicorn %}} or {{% unicorn_scripts %}}?') }} else {{ {init_script} }}"
0 commit comments