Comments (3)
Hey, thanks a lot for the feedback !
I completely agree with all of your ideas, and i will use this post to explain what are my ideas for the future of this plugin.
For the arguments, i had the same exact idea. I think in the future users will be able to pass a list of args to the internal template, and i will pass that list to the internal template function handling this. This will allow internal templates to be way more dynamic. Thanks for the code, that will come handy when i develop this functionality !
Your idea of being able to call some local javascript files is very interesting, and could make this plugin way more scriptable than what it is in its current state. I'll keep this idea in mind for the future.
Concerning the internal templates, I don't think the current way to add new internal templates is really extensible and sustainable. This plugin is really in a beta state and I will probably refactor the way internal templates can be added later.
I was thinking of maybe declaring an interface, where one would have to create a class that extends this interface in order to develop a new internal template.
For the prefixed tags, they are indeed to prevent conflicts with user defined tags, and to recognize internal templates easily. I could maybe change this to something shorter in the future.
For the internal_templates_map
, I added the mustaches here because I don't want them to be mandatory, if someone wants to develop a new internal template that can be matched with the tag [[<template>]]
, they can.
from templater.
I think with the new version, this issue can be closed. Nice work @SilentVoid13!
from templater.
First, massive thanks for your great work on this plugin @SilentVoid13 and to @liamcain for the calendar and periodic notes plugins. My primary use is to combine these for daily, weekly, and quarterly note templates.
I'm attempting to create a "pretty" date title for my notes generated from the templates, but the note won't always be generated from the template on the same day as the note. (e.g. if I'm planning my day the night before). Is there something I'm missing where that info would be exposed?
Along these lines, what are your thoughts on adding environment variables containing metadata of the new note, workspace, vault, and front-matter.
If I can find some time I'll spike this and send a pull request to review, but wanted to get your thoughts first in case I'm barking up the wrong tree.
from templater.
Related Issues (20)
- [Feature request] Automatic templates ignore files setting
- Folder template (checkbox - include subfolders)
- Create new file from template HOT 2
- tp.date.now returns incorrect time. HOT 2
- Add native AI support HOT 2
- Add `<%*` tag to documentation HOT 1
- Templater script inserting newline before front matter HOT 3
- Don't Include Frontmatter in Output HOT 2
- Folder Notes take priority when creating file HOT 7
- Expand metadata in space - Geolocation coords support request
- Console error: app.js:1 No file creator assigned to create file with extension com. Falling back to markdown file creator. HOT 1
- Error: Failed to List Templates, No Template Folder Configured HOT 8
- Execution of the tp.file.selection() function erase the selection in the note HOT 2
- Add note about modified date to the FAQs / docs
- front matter formating number as a string HOT 1
- main.js missing HOT 3
- Date not rendered as link HOT 1
- 2.3.2 broke my frontmatter processing template HOT 6
- Auto jump to cursor is triggered twice on new file creation HOT 4
- invalid reference date format, try specifying one with reference format HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templater.