Output functions

Basic functions for output and formatting.

Pro­ces­s(script, cursor)
Requires specific access granted, due to risk of producing unintended back doors. Such as running malicious scripts from user input.
con­sole­.a­sser­t(condition, message)
This function checks if a certain condition is false. If it is, outputs an error message and throws an exception with the message.
Wri­te(text)
Outputs specified text to page content, same as write in javascript.
Re­ques­t
Get information about the current request from the request object.
For­mat(value, format)
Formats a number or date into a string by given format.
For­mat­tin­g num­ber­s
Information about formatting numbers with the Docly format function.
HTML.­for­m­at(html)
Outputs specified html string to "prettified" indented html.
JSON.­for­m­at(json)
Outputs specified JSON string to "prettified" indented JSON.
Re­direc­t(url)
Redirects browser to specified url.
JSON.­par­s­e(json)
Parses a JSON string into an object.
JSON.st­r­in­gify(value)
Outputs specified text to your users log, same as in javascript. You can find your log here: #A
con­sole.­l­og(text)
Outputs specified text to your users log, same as in javascript. You can find your log here: https://docly.net/#A
Set­Cul­tur­e(culture)
Sets culture to use when formatting dates and numbers.
Text­ToHt­ml(text)
Converts input text to HTML (line breaks and encoding chars).
Ch­r(code, ...)
Returns character of specified number. Can take multiple values.