mixxorz/slippers

Invalid block tag on line 5: '#footer_card'. Did you forget to register or load this tag?

Closed this issue · 1 comments

Please resolve problem with installation.

Traceback (most recent call last):
  File "C:\Users\Sharad Bhandari\Downloads\success_business_9aug\.venv\Lib\site-packages\django\template\base.py", line 505, in parse
    compile_func = self.tags[command]
                   ~~~~~~~~~^^^^^^^^^
KeyError: '#footer_card'

During handling of the above exception, another exception occurred:
...
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 5: '#footer_card'. Did you forget to register or load this tag?
[13/Aug/2023 00:05:55] "GET /htmx/footer/ HTTP/1.1" 500 160659

settings.py of project

INSTALLED_APPS = ['slippers']
TEMPLATES = [
    {
        .....
      'OPTIONS': {
                  'context_processors': [
                      ...
                  ],
                  "builtins": ["slippers.templatetags.slippers"],
              },

       ....
   }
]

Location of components.yml : /templates/components.yaml
components: footer_card: "components/footer-card.html"

Component template is inside /templates/components/footer-card.html

<div class="col-xl-4 col-lg-6 mb-4">
    <div class="card">
      <div class="card-body">
        {{children}}
      </div>
    </div>
</div>

Loading component from /templates/sections/footer-list.html

{% load slippers %}

<div class="row"  id="Footer-Area"  hx-swap-oob="true" >

    {% #footer_card %}
    <a href="{% url 'about' %}"></a><li>About Company</li>
    {% /footer_card %}
</div>

Component.yaml spell mistake