How to add a tag to note when including existing file with Templater

Things I have tried

I have tried searching and looked at docs but could not find anything.

What I’m trying to do

I need some templates that are identical except for a few extra tags. In order to do this I use the fp.file.include function of Templater for the base template but I do not know how to add tags.



tags: tag1

Extended template:

<% tp.file.include("[[TemplateBase]]") %>
<somehow add tag2>


tags: tag1 tag2
1 Like

Why not

<% tp.file.include("[[TemplateBase]]") %> additional_tag2 additional_tag3

Where TemplateBase has everything up to the end of the tag line. I haven’t tested this, but seems logical.

Edit: I just tested and this seems to work fine.

I guess I should have included more in the example.

It is not just the tags. There are plenty of other things in the template hence the include would come with complete yaml at top along with other headers and things below

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.