Skip to content

Commit feb6476

Browse files
committed
feat: org python templates
A basic python template, one contaning `value` as a `:result` option, and another with `output`.
1 parent 17ae488 commit feb6476

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: templates/org.eld

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ org-mode
2525
(format-time-string "%Y-%m-%d") n ":EXPORT_HUGO_DRAFT: false" n ":END:")
2626
(rdmecollapse "*** " (p "Heading") n "#+HTML: <details> <summary> " (p "sub-heading") " </summary>" n
2727
(r> "link or any comments") n n "#+HTML: </details>" n)
28+
(python & "#+begin_src python" n r n "#+end_src"
29+
:post (org-edit-src-code))
30+
(pythonvle & "#+begin_src python :results value" n r n "#+end_src"
31+
:post (org-edit-src-code))
32+
(pythonotpt & "#+begin_src python :results output" n r n "#+end_src"
33+
:post (org-edit-src-code))
2834

2935
;; taken from https://github.com/minad/tempel/blob/5b09f612cfd805dba5e90bf06580583cab045499/README.org#template-file-format
3036
(cptn & "#+caption: ")

0 commit comments

Comments
 (0)