What I’m trying to do
To improve the reusability of my templates, I use tp.file.include a lot.
To improve visibility (at least to me personally), I like to use callouts.
What I’d like is a templater template that defines a callout, and the callout content is a call to tp.file.include to get the stuff to include in the callout. This “stuff” is usually a dataview query.
Things I have tried
Here’s as far as I’ve got: a templater template (call it X) that has the form
text...
>[!NOTE]- A title
> <% await tp.file.include("[[a template including a DQL query]]") %>
more text...
What I get when I insert template X into a note, I get something like
>[!NOTE]- A title
> ```dataview
FROM... rest of DQL query
```
While this isn’t really surprising, I’m stumped by how to get the output of tp.file.include to get wrapped with callout syntax.
And, no, I don’t want to use the admonitions plugin that can do callouts as codeblocks.


