Templater
Templater copied to clipboard
reuse the data obtained from User Script
Is your feature request related to a problem? Please describe. I want to get object values from my User Script. For example, my script return a bookInfo object, and it contains bookInfo.author, bookInfo.cover and so on. I want to use the contents of object in many places of the template.
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
This is a built in feature using execution commands.
<%*
let bookInfo = tp.user.myScript();
-%>
<% bookInfo.author %>
<% bookInfo.cover %>