<%*
// Use suggester to select the note type
let selection = await tp.system.suggester(
["Term", "Short term", "Profile"],
["Term", "Short term", "Profile"]
);
let templatePath = "";
if (selection === "Term") {
templatePath = "Meta/templates/TermL";
} else if (selection === "Short term") {
templatePath = "Meta/templates/short-term";
} else if (selection === "Profile") {
templatePath = "Meta/templates/Profile";
}
// Find the template file
let selectedTemplate = await tp.file.find_tfile(templatePath);
// Include the template content if the file exists
if (selectedTemplate) {
tR += await tp.file.include(selectedTemplate);
} else {
tR += `Error: Template not found for selection "${selection}".`;
}
-%>