Recently Written · git

tmpl

Insanely simple templates

git clone https://github.com/equwal/tmpl

Log | Files | Refs


commit 9e1ccd8d4959b42449ccee1fcdd6592d89c724cf
Spenser Truex <truex@equwal.com>
2025-09-06 14:12:19 -0700

Show template example

 README.md | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 44cbd9c..37128bc 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,24 @@
-Templates for all kinds of things. Just read a file into your editor at the cursor and jump to the <++> locations.
+Templates for all kinds of things. Just read a file into your editor at the cursor and jump to the `<++>` locations.
+
+Here is one such template:
+```
+(defpackage :<++>-system (:use :cl :asdf))
+(in-package :<++>-system)
+(defsystem <++>
+  :name "<++>"
+  :author "<++> <<++>@<++>.<++>>"
+  :version "<++>"
+  :maintainer "<++> <<++>@<++>.<++>>"
+  :license "GNU GPLv3.0"
+  :description "<++>"
+  ;; put the most general files first to minimize the "depends on" use
+  ;; and in that case you'll need :serial t
+  :serial <++>
+  :components ((:file "packages")
+               (:file "<++>" :depends-on ("<++>")))
+  :weakly-depends-on (<++>)
+  :depends-on (<++>))
+```
 
 # Using with Vim
 
@@ -8,7 +28,7 @@ Templates for all kinds of things. Just read a file into your editor at the curs
 
 
 Make sure to add a templating shortcut to your leader key to jump to
-the`<++>` spots.
+the `<++>` spots.
 ```vim
     -- Templating shortcut
     map("n", "<leader><Space>", "/<++><CR>dt>a<BS>", { desc = "Jump to next template placeholder" })