Skip to content

Commit

Permalink
Fixes in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehenry committed Oct 8, 2024
1 parent 95ef042 commit a79a02d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ source that one as the project's root importmap.
<!-- Using attributes with chars unauthorized in Django templates -->
{% importmap defer="true" "yes" as "data-is-cool" %}
<!-- Attribute without value -->
{% importmap defer="true" "yes" as "data-is-cool" %}
{% importmap "defer" "yes" as "data-is-cool" %}
```

**Note**: trying to specify an HTML attribute with no value as the first argument of `{% importmap %}` creates an
Expand All @@ -122,7 +122,7 @@ argument:

```django
<!-- TemplateSyntaxError: ambiguity -->
`{% importmap %}`
`{% importmap "defer" %}`
<!-- Ok -->
{% importmap "--" defer %}
{% importmap "--" "defer" %}
```
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ line-length = 100
docstring-code-format = true

[tool.ruff.lint.isort]
force-sort-within-sections = true
section-order = [
"future",
"standard-library",
Expand Down

0 comments on commit a79a02d

Please sign in to comment.