Hello,
I’m currently trying to implement a <% tp.file.include(‘[[Template]]’) %> into a suggestor. The suggestor should ask whether the template should be inserted or not.
I’ve used the following code, but unfortunately it’s not working:
Try that, and if still gives the same error, try this one:
<%*
const insertTemplate = await tp.system.suggester(["Yes", "No"], [true, false])
if ( insertTemplate )
tR += "Should be a template"
%>
And it should add that line of “Should be a template” into your file. If it still fails, then either are you copying stuff wrongly, or you have something else wrong in other Templater user functions or templates.