generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(usertemplates): adding arguments for user templates
User templates are now considered functions, and you can pass them some arguments like so tp.user.my_template(arg1=value1,arg2=value2) This is not working for now because nunjucks doesn't support async functions. I need to find a solution for this problem re #34, re #65
- Loading branch information
1 parent
7a08fd8
commit 58ff185
Showing
2 changed files
with
23 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { App, TFile } from "obsidian"; | ||
|
||
export abstract class TParser { | ||
constructor(public app: App) {} | ||
abstract generateContext(file: TFile): Promise<any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters