Added snippets for Emacs

This commit is contained in:
Fabio Scotto di Santolo
2025-12-27 13:53:55 +01:00
parent 2d510d289c
commit db4f52a064
115 changed files with 814 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#name : a
# --
<a href="$1">
$0
</a>

View File

@@ -0,0 +1,5 @@
#name : div
# --
<div class="$1">
$0
</div>

View File

@@ -0,0 +1,5 @@
#name : divv
# --
<div class="{{ $1 }}">
$0
</div>

View File

@@ -0,0 +1,5 @@
#name : for
# --
{% for $1 in $2 %}
$0
{% endfor %}

View File

@@ -0,0 +1,4 @@
#name : h1
# --
<h1>$1</h1>
$0

View File

@@ -0,0 +1,4 @@
#name : h2
# --
<h2>$1</h2>
$0

View File

@@ -0,0 +1,4 @@
#name : h3
# --
<h3>$1</h3>
$0

View File

@@ -0,0 +1,4 @@
#name : h4
# --
<h4>$1</h4>
$0

View File

@@ -0,0 +1,5 @@
#name : if
# --
{% if $1 %}
$0
{% endif %}

View File

@@ -0,0 +1,3 @@
#name : img
# --
<img src="$1" alt="$2"/>

View File

@@ -0,0 +1,3 @@
#name : incl
# --
{% include "$1" %}

View File

@@ -0,0 +1,13 @@
#name : itemthumb
# --
<a href="{{ data.byhref[item.href].links.alternate[0].href }}">
{% if data.byhref[item.href].links.thumbnail[0] %}
<img
src="{{ data.byhref[item.href].links.thumbnail[0].href }}"
alt="thumbnail for {{ item.title }}"
/>
<br/>
{% endif %}
{{ item.title }}
</a>
$0

View File

@@ -0,0 +1,4 @@
#name : linkcss
# --
<link rel="stylesheet" type="text/css" href="$1"/>
$0

View File

@@ -0,0 +1,5 @@
#name : p
# --
<p>
$0
</p>

View File

@@ -0,0 +1,5 @@
#name : style
# --
<style type="text/css">
$0
</style>

View File

@@ -0,0 +1,5 @@
#name : with
# --
{% with $1 = $2 %}
$0
{% endwith %}

View File

@@ -0,0 +1,3 @@
#name : =
# --
{{ $0 }}