New Nested Template Feature
Use template links ([[= ]] or {= }, they are interchangeable) within your dynamic templates to nest other templates.
You can specify a subsection of a template to use for insertion with # or #>. The # includes the section header, and the #> only uses the section inner content.
New Template Section Insertion
You can now select a section to insert with a new note link rather than inserting the whole template
You can use # or #> in a nested Template insertion link to insert that section. The '>' surpresses the section header on insertion
Note this feature is for new note links or nested insertion, not default template insertion. But if you want to use section insertion for a default template, just put the nested section insertion inside your default template. (a bit confusing but I'll try and make some example templates)
Examples:
{=project/Projects} inserts the Projects note as a template
[[=project/Project Dashboard#Active Projects]] inserts the Active Projects section of the Projects note
[[=daily-templates/{"EEEE":Today}#>Tasks]] inserts the content under the tasks section of the template for the day of the week, without the header
Usage Warning: If two templates nest insert each other you will end up in an infinite loop and crash the plugin 🤣, so don't do that.
User #89989
8:26pm on December 20, 2024
This is such a great plugin!
I like the way it is so easy to create a new template link 👍
Could it be possible to allow any expressions (ie. from other plugins) to be inserted, rather than just time/date?
Also, allowing expressions in the tag section (ie. you could use it to create a new tag #date/yy/MM/dd) would be good!
I appreciate the feedback! Which expressions do you have in mind? The Amplenote plugin api doesn't have a native way for plugins to integrate with each other, but if there are some specific expressions you are looking for I can see if they fit for this plugin
User #89989
8:16pm on December 21, 2024
Thanks for your quick reply!
Well it might be difficult if Amplenote doesn't nativeley allow for it, and it probably wouldn't be that useful.
I made a custom weather plugin to insert the day's weather, was wondering if that could be automatically inserted.
Would the expressions in the tag section be easier to implement?
4 Comments
Update to Dynamic Templater Plugin - New Features
New Nested Template Feature
Use template links ([[= ]] or {= }, they are interchangeable) within your dynamic templates to nest other templates.
You can specify a subsection of a template to use for insertion with # or #>. The # includes the section header, and the #> only uses the section inner content.
New Template Section Insertion
You can now select a section to insert with a new note link rather than inserting the whole template
You can use # or #> in a nested Template insertion link to insert that section. The '>' surpresses the section header on insertion
Note this feature is for new note links or nested insertion, not default template insertion. But if you want to use section insertion for a default template, just put the nested section insertion inside your default template. (a bit confusing but I'll try and make some example templates)
Examples:
{=project/Projects} inserts the Projects note as a template
[[=project/Project Dashboard#Active Projects]] inserts the Active Projects section of the Projects note
[[=daily-templates/{"EEEE":Today}#>Tasks]] inserts the content under the tasks section of the template for the day of the week, without the header
Usage Warning: If two templates nest insert each other you will end up in an infinite loop and crash the plugin 🤣, so don't do that.
This is such a great plugin!
I like the way it is so easy to create a new template link 👍
Could it be possible to allow any expressions (ie. from other plugins) to be inserted, rather than just time/date?
Also, allowing expressions in the tag section (ie. you could use it to create a new tag #date/yy/MM/dd) would be good!
But anyway, this plugin is amazing 😁
I appreciate the feedback! Which expressions do you have in mind? The Amplenote plugin api doesn't have a native way for plugins to integrate with each other, but if there are some specific expressions you are looking for I can see if they fit for this plugin
Thanks for your quick reply!
Well it might be difficult if Amplenote doesn't nativeley allow for it, and it probably wouldn't be that useful.
I made a custom weather plugin to insert the day's weather, was wondering if that could be automatically inserted.
Would the expressions in the tag section be easier to implement?
Thanks for your great work!
Leave a comment
Login to Amplenote to leave a comment