MCPcopy
hub / github.com/SilentVoid13/Templater

github.com/SilentVoid13/Templater @3.0.0 sqlite

repository ↗ · DeepWiki ↗ · release 3.0.0 ↗
370 symbols 877 edges 46 files 0 documented · 0%
README

Templater Obsidian Plugin

templater_logo

Templater is a template language that lets you insert variables and functions results into your Obsidian notes. It will also let you execute JavaScript code manipulating those variables and functions.

Demonstration

templater_demo

Documentation

Check out the complete documentation to start using Templater.

Warning

Templater allows you to execute arbitrary JavaScript code and system commands.

It can be dangerous to execute arbitrary JavaScript code or system commands from untrusted sources. Only run code / commands that you understand, from trusted sources.

Because Obsidian is an offline application, it can be dangerous only if you copy-paste and blindly use a code snippet / command / template from an untrusted source.

Template Showcase ? Questions ? Ideas ? Help ?

Go to the discussion tab to ask and find this kind of things.

Don't be shy and share your templates created using Templater in the Template Showcase category. Use gists to share the template file. I'm curious of what the community has come up with, and I'm sure I'm not the only one.

Utilities

A list of useful tools to use along Templater:

Resources

A list of useful resources about Templater:

  • @GitMurf quick demo How to setup and run your first Templater JS script: https://github.com/SilentVoid13/Templater/discussions/187
  • @shabegom How To Use Templater JS Scripts: https://shbgm.ca/obsidian/docs/how-to-use-templater-js-scripts
  • @chhoumann Templates showcase: https://github.com/chhoumann/Templater_Templates
  • @tallguyjenks video: https://youtu.be/2234DXKbNgM?t=1944
  • @ProductivityGuru videos: https://www.youtube.com/watch?v=cSawi0tYPMM

Alternatives

  • https://github.com/garyng/obsidian-temple
  • https://github.com/avirut/obsidian-metatemplates

Contributing

Feel free to contribute.

You can create an issue to report a bug, suggest an improvement for this plugin, ask a question, etc.

You can make a pull request to contribute to this plugin development.

Go here to get more information on how to develop a new internal variable / function.

License

Templater is licensed under the GNU AGPLv3 license. Refer to LICENSE for more information.

Support

If you want to support me and my work, you can sponsor me on Github (preferred method) or donate something on Paypal.

Extension points exported contracts — how you extend this code

IGenerateObject (Interface)
(no doc) [11 implementers]
src/core/functions/IGenerateObject.ts
dom (Interface)
(no doc)
src/types.ts
FolderTemplate (Interface)
(no doc)
src/settings/Settings.ts
TestRunConfig (Interface)
(no doc)
tests/main.test.ts
Vault (Interface)
(no doc)
src/types.ts
Settings (Interface)
(no doc)
src/settings/Settings.ts
FileManager (Interface)
(no doc)
src/types.ts
DataAdapter (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

cont
called by 170
src/editor/mode/javascript.js
expect
called by 66
src/editor/mode/javascript.js
pass
called by 43
src/editor/mode/javascript.js
pushlex
called by 41
src/editor/mode/javascript.js
save_settings
called by 28
src/main.ts
kw
called by 22
src/editor/mode/javascript.js
ret
called by 21
src/editor/mode/javascript.js
commasep
called by 17
src/editor/mode/javascript.js

Shape

Method 169
Function 129
Class 60
Interface 8
Enum 4

Languages

TypeScript100%

Modules by API surface

src/editor/mode/javascript.js98 symbols
src/core/functions/internal_functions/file/InternalModuleFile.ts20 symbols
src/settings/Settings.ts18 symbols
src/core/Templater.ts17 symbols
tests/main.test.ts16 symbols
src/settings/suggesters/suggest.ts14 symbols
src/handlers/FuzzySuggester.ts10 symbols
src/editor/TpDocumentation.ts10 symbols
src/settings/suggesters/FileSuggester.ts9 symbols
src/core/functions/internal_functions/system/SuggesterModal.ts9 symbols
src/core/functions/internal_functions/system/PromptModal.ts9 symbols
src/utils/Utils.ts8 symbols

Dependencies from manifests, versioned

@codemirror/state6.1.1 · 1×
@codemirror/view6.2.3 · 1×
@popperjs/core2.11.2 · 1×
@types/chai4.3.0 · 1×
@types/chai-as-promised7.1.4 · 1×
@types/node14.18.5 · 1×
@typescript-eslint/eslint-plugin5.36.2 · 1×
@typescript-eslint/parser5.36.2 · 1×
builtin-modules3.2.0 · 1×
chai4.3.4 · 1×
chai-as-promised7.1.1 · 1×
child_process1.0.2 · 1×

For agents

$ claude mcp add Templater \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact