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.
1 Comment
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.
Leave a comment
Login to Amplenote to leave a comment