diff --git a/README.md b/README.md index 339fdca..f7befd2 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ ptd-url | {% url ' `*` ' `*2` %} ptd-load | {% load `*` %} ptd-stat | {% static ' `*` ' %} ptd-inc | {% include ' `*` ' %} +ptd-firstof | {% firstof `*` `*2` %} ## Release Notes diff --git a/snippets/django-snippets.json b/snippets/django-snippets.json index 4071b41..e499dd7 100644 --- a/snippets/django-snippets.json +++ b/snippets/django-snippets.json @@ -25,5 +25,12 @@ "prefix": "ptd-inc", "body": ["{% include '$1' %}$0"], "description": "Adds Include File Block" + }, + + "Django - Firstof Tags": { + "scope": "html", + "prefix": "ptd-firstof", + "body": ["{% firstof $1 $2 %}$0"], + "description": "Adds Firstof Block" } }