aboutsummaryrefslogtreecommitdiffstats
path: root/oni-yasnippet/snippets/html-mode
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-05-28 02:12:40 -0700
committerGravatar Tom Willemse2026-05-28 02:12:40 -0700
commit09a4099586657170cbdcff071b2d0fac5ed133b7 (patch)
tree8e8df3ca47bf2e89b430eb4f77e329dc78946320 /oni-yasnippet/snippets/html-mode
parenta44d06182fbcb6b424b4ac699c69f7132c68acb6 (diff)
downloademacs-config-09a4099586657170cbdcff071b2d0fac5ed133b7.tar.gz
emacs-config-09a4099586657170cbdcff071b2d0fac5ed133b7.zip
oni-yasnippet: Move all snippets to ‘oni-yasnippet’
There is no real point in having them all separate. Having them all in a single place makes them much easier to manage.
Diffstat (limited to 'oni-yasnippet/snippets/html-mode')
-rw-r--r--oni-yasnippet/snippets/html-mode/block7
-rw-r--r--oni-yasnippet/snippets/html-mode/for8
-rw-r--r--oni-yasnippet/snippets/html-mode/generic-block8
-rw-r--r--oni-yasnippet/snippets/html-mode/script5
-rw-r--r--oni-yasnippet/snippets/html-mode/trans-with-cap6
5 files changed, 34 insertions, 0 deletions
diff --git a/oni-yasnippet/snippets/html-mode/block b/oni-yasnippet/snippets/html-mode/block
new file mode 100644
index 0000000..6510011
--- /dev/null
+++ b/oni-yasnippet/snippets/html-mode/block
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: block
+# key: block
+# --
+{% block $1 %}
+ $0
+{% endblock %} \ No newline at end of file
diff --git a/oni-yasnippet/snippets/html-mode/for b/oni-yasnippet/snippets/html-mode/for
new file mode 100644
index 0000000..01d9c44
--- /dev/null
+++ b/oni-yasnippet/snippets/html-mode/for
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: for
+# key: for
+# condition: pony-tpl-minor-mode
+# --
+{% for $1 in $2 %}
+ $0
+{% endfor %} \ No newline at end of file
diff --git a/oni-yasnippet/snippets/html-mode/generic-block b/oni-yasnippet/snippets/html-mode/generic-block
new file mode 100644
index 0000000..82d40c7
--- /dev/null
+++ b/oni-yasnippet/snippets/html-mode/generic-block
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: Template Block
+# key: %
+# condition: pony-tpl-minor-mode
+# --
+{% $1 %}
+ $0
+{% end$1 %} \ No newline at end of file
diff --git a/oni-yasnippet/snippets/html-mode/script b/oni-yasnippet/snippets/html-mode/script
new file mode 100644
index 0000000..e50dbf5
--- /dev/null
+++ b/oni-yasnippet/snippets/html-mode/script
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: script
+# key: script
+# --
+<script src="$1" type="${2:text/javascript}" language="${3:javascript}"></script> \ No newline at end of file
diff --git a/oni-yasnippet/snippets/html-mode/trans-with-cap b/oni-yasnippet/snippets/html-mode/trans-with-cap
new file mode 100644
index 0000000..4f20a33
--- /dev/null
+++ b/oni-yasnippet/snippets/html-mode/trans-with-cap
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: trans with cap
+# key: trans
+# condition: pony-tpl-minor-mode
+# --
+{% trans "$1"|capfirst %} \ No newline at end of file