Templater Plugin: `tp.file.include()` Only Inserts Empty Lines

I found a solution:

<%*
const options = ["A", "B", "C"];
const fileNames = { "A": "A", "B": "B", "C": "C" }; 
const choice = await tp.system.suggester(options, options, false); 

if (choice) {
  const fileName = fileNames[choice];
  tR += await tp.file.include(`[[${fileName}]]`);
}
%>

2 Likes