bpj
August 12, 2022, 10:35am
3
If you follow the instructions here, you can install extensions and formatters without them being overwritten (in the extensions/server_connect/modules
folder)
Writing your own Formatters
Location
All formatters are being placed in the extensions/server_connect/formatters folder. A single file can contain multiple formatters and you can have multiple files. Best practice is to group formatters that belong together in a single file. For example you to keep all array specific formatters in a file called array.js .
File Structure
Here a sample of how such a formatter file looks like.
exports.uppercase = function(str) {
return str.toUpperCase();
}…