We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The list (https://github.com/webu/dalec/blob/main/dalec/templates/dalec/default/list.html) is hardcoded to be into a "div". What if we want another tag (i.e. "section") or having item as "li" into a "ul" ?
Right now it is not possible without overiding the whole template. It would be nice to be able to customize the markup, without the needed JS part.
The text was updated successfully, but these errors were encountered:
You could override the template. But if you want to be sure to keep same "required code" (JS, some attrs...) you could do a PR to add three variables:
container_tag
container_class
container_extra_attrs
with those variables added, you could do this:
{% extends dalec/default/list.hml %} {% block dalec_list_body %} {% with container_tag="section" %} {{ block.super }} {% endwith %} {% endblock dalec_list_body %}
In your PR, you could also move the JS part inside a 3rd block named dalec_list_js
dalec_list_js
Sorry, something went wrong.
No branches or pull requests
The list (https://github.com/webu/dalec/blob/main/dalec/templates/dalec/default/list.html) is hardcoded to be into a "div". What if we want another tag (i.e. "section") or having item as "li" into a "ul" ?
Right now it is not possible without overiding the whole template. It would be nice to be able to customize the markup, without the needed JS part.
The text was updated successfully, but these errors were encountered: