mirror of
https://github.com/foambubble/foam-template.git
synced 2025-07-03 00:28:57 +00:00
Document templates in-place
This commit is contained in:
parent
b24fa3fd5c
commit
40300d3b0c
1 changed files with 17 additions and 0 deletions
17
.foam/templates/your-first-template.md
Normal file
17
.foam/templates/your-first-template.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Foam Note Templates
|
||||
|
||||
Foam includes note templates! This allows you to create new notes from the given template.
|
||||
Templates are treated just like snippets allowing you to use [VS Code's Snippet Syntax](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax).
|
||||
Below you can see an example showing a todo list and a timestamp.
|
||||
|
||||
## Todo List
|
||||
|
||||
1. ${1:First tabstop}
|
||||
2. ${2:A second tabstop}
|
||||
3. ${3:A third tabstop}
|
||||
|
||||
Note Created: ${CURRENT_YEAR}${CURRENT_MONTH}${CURRENT_DATE}
|
||||
|
||||
---
|
||||
|
||||
Try out the above example by running the `Foam: Create New Note From Template` command and selecting the `your-first-template` template. Notice what happens when your new note is created!
|
Loading…
Add table
Reference in a new issue