Lua Expressions in Page Templates

Hello All, I’m very new to SilverBullet. I have only ever used v2. I’ve been trying to build out my own seutp. I’ve been focusing on my journaling to start and I have a simple template.

One thing that I’m trying to do is to have a title in frontmatter (so it can be included in a query list) and I would also like that title to appear at the top of the page template. I have a prompt for capturing the title when the page is created. It works well enough, but the Lua expression is seemingly interpreted on creation instead of as part of the live editor. I haven’t found a way to escape the expression so it remains in the template.

Am I approaching this wrong?

i saw this workaround in some post, can’t find it now. but basically:

intead of putting

${yourFunction()}

in your template add this prefix {“$”} like this:

${"$"}{yourFunction()}

this way the template will render the ${"$"} as literal "$"

i hope i understood correctly what you’re trying to do. if not, please be more specific with examples what you are trying to do. without example is sometimes hard to understand.