When writing simple Razor-Templates the mechanism is almost the same as using Tokens (here you see the original Token-Samples).
To understand what this does, click on look-inside. It basically demonstrates an if-statement which work like this
Note that between the { ... } it's not always clear whether your code is a variable or text which should be shown. When in doubt (or when you see errors) put some HTML around your output like <span>didn't find it</span>. If the html is undesirable, use <text>didn't find it</text> so that Razor knows that this is just output. the <text> won't be shown.
This sample takes this text you see right here and replaces a part of it with the current year to pretend that it was just updated yesterday. So the content actually has a %yesterday% which will be replaced with yesterdays date.
This was updated on 9/10/2024
Sometimes as a project grows, suddenly you get additional requirements which could be solved very easily. For example, assume your editor suddenly said he needs to be able to add 1 or 5 or even 27 links, but it should be very simple to do and he's not going to pay money, so you better find a quick-and-dirty solution. So you tell him "no problem, just add all the links in the link field and separate them with a comma, my script will do the rest". This is what this demo does.
More sophisticated versions might offer a multi-line field and add <br> tags after each line or anything :)