Skip to content

Change When The template variables are consumed to allow templater plugin's tp.file.include #184

@hollowhemlock

Description

@hollowhemlock

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.

🔖 Feature description

I want to be able to place ReadItLater template variables inside markdown templates and include them using the templater plugin. Is it possible to resolve the ReadItLater template variables after the tp.file.include() are called?

link to templater plugin.

Currently

The tp.file.include() call works fine in this case but I can't place templater variables inside markdown templates because they end up unchanged in the final note.

ReadItLater Youtube note template:

---
<% tp.file.include("[[_common_yaml_template]]") %>
url: %videoURL%
channel: %channelURL%
---
## Video
%videoPlayer%

✔️ Solution

Is there a way to consume the template variables after the templater calls resolve?

ReadItLater settings Youtube note template:

<% tp.file.include("[[youtubeTemplate]]") %>

youtubeTemplate.md:

---
<% tp.file.include("[[_common_yaml_template]]") %>
url: %videoURL%
channel: %channelURL%
---
## Video
%videoPlayer%

❓ Alternatives

No response

📝 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions