We can still access the
tp object and all the internal variables / functions from this type of command.
await keyword if necessary.
Sometimes, you may want to output something when using a JS execution command. This is possible although a raw display / interpolation command is preferable.
When the Eta templating engine generates a replacement string using all of our commands results, it is stored in a variable named
tR. This is the string that will contain the processed file content. You are allowed to access that variable from a JS execution command.
This means that, to output something from a JS execution command, you just need to append what you want to output to that
tR string variable.
For example, the following command:
<%* tR += "test" %> will output