Function Updated 30 May 2026
write(text)
Outputs specified text to page content, same as write in javascript.
Note that for API functions the output will not be returned to the user directly. It will be written to the "output" buffer. Only if the "ContentDisposition" header is set the output will be returned.
Parameters
textstringrequiredText to write to output. Same behaviour as in JavaScript.
Returns
Nothing, but writes text to output stream at the position of the code.
Example
Mixed HTML (or any text file) with inline JavaScript between hash signs.
<p>Content above</p>
<p>#write("Hello" + " " + "world")#</p>
<p>Content below</p>The template above produces this output:
<p>Content above</p>
<p>Hello world</p>
<p>Content below</p>