diff --git a/README.md b/README.md index 928c33a9..7c7fea1d 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,8 @@ In context this will look a bit like the following... ``` +Keyworded parameters that can also be passed in include `class="example"` and `initial_html="example.html"` + ## `example_app/views.py` You can then serve `your-template.html` from a view just diff --git a/src/django_idom/templates/idom/component.html b/src/django_idom/templates/idom/component.html index 65ad0c45..acdd7722 100644 --- a/src/django_idom/templates/idom/component.html +++ b/src/django_idom/templates/idom/component.html @@ -1,5 +1,5 @@ {% load static %} -
+
{% if initial_html %}{% include initial_html %}{% endif %}