With the Templater plugin’s new syntax, I’m trying to emulate the old {{tp_title_picture}} behaviour (generate an unsplash.com image link based on the note’s title).
I tried both
<% tp.web.random_picture("1920x1080", "<% tp.file.title %>") %>
<% tp.web.random_picture("1920x1080", <% tp.file.title %>) %>
but it seems Templater cannot handle nested variables/functions.
Non-nested calls like
<% tp.web.random_picture("1920x1080", "Example") %>
work fine.
How would I do this? Or other “nested” Templater commands?
See also: New Syntax: No nesting possible? (Trying to emulate old {{tp_title_picture}}) · Issue #97 · SilentVoid13/Templater · GitHub