Skip to content

Commit 62e3a8e

Browse files
CopilotEndlessTrax
andauthored
Add Django firstof tag snippet (#10)
* Initial plan * Add Django firstof tag snippet Co-authored-by: EndlessTrax <17141891+EndlessTrax@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: EndlessTrax <17141891+EndlessTrax@users.noreply.github.com>
1 parent d692064 commit 62e3a8e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ ptd-url | {% url ' `*` ' `*2` %}
6262
ptd-load | {% load `*` %}
6363
ptd-stat | {% static ' `*` ' %}
6464
ptd-inc | {% include ' `*` ' %}
65+
ptd-firstof | {% firstof `*` `*2` %}
6566

6667
## Release Notes
6768

snippets/django-snippets.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,12 @@
2525
"prefix": "ptd-inc",
2626
"body": ["{% include '$1' %}$0"],
2727
"description": "Adds Include File Block"
28+
},
29+
30+
"Django - Firstof Tags": {
31+
"scope": "html",
32+
"prefix": "ptd-firstof",
33+
"body": ["{% firstof $1 $2 %}$0"],
34+
"description": "Adds Firstof Block"
2835
}
2936
}

0 commit comments

Comments
 (0)