File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ in every served dynamic file (like .html), you can insert `<?` and `?>` tags to
109109request-independent services can be created using .service.js files referenced in services.txt.
110110in both file types (dynamic served and services), you can use all node/bun methods including ` require ` , but also those:
111111
112+ - ` escape_html(str) ` : escapes html special characters
112113- ` log(msg) ` : logs the message to the console
113114- ` service_require(service path) ` : returns the matching service object
114115- ` service_require_try(service path) ` : returns the matching service object or null if not found or if disabled
@@ -117,7 +118,6 @@ in both file types (dynamic served and services), you can use all node/bun metho
117118 - ` async data_load(path) ` : reads the file in data directory and returns its content or null
118119 - ` async data_load_watch(path, callback(content)) ` : executes callback first and on every change
119120 - ` async data_save(path, content) ` : writes the content to the file in data directory
120- - ` escape_html(str) ` : escapes html special characters
121121
122122## environment variables
123123- ` rtjscomp_path_data ` : path to data directory, default is ` ./data `
You can’t perform that action at this time.
0 commit comments