Docly Developers
Section17 pages

JavaScript reference

In Docly you create custom display templates (HTML and/or PDF) and API functions using JavaScript both in frontend and backend.

IntroductionLet us introduce you to how you configure and code in Docly™ with JavaScript.4 pagesGeneral functionsThe JavaScript statements and keywords as Docly runs them — if, switch, try, function, import, typeof and more — and…12 pagesDirectivesThe include and master server directives that avoids repetition of code in your files.2 pagesChapter functionsDocly provided helper functions to create chapter counters working on multiple levels.5 pagesDate and time functionsFunctions to convert and change date and time objects.9 pagesFilesystem functionsFunctions to link files and images from Docly to your web content.51 pagesMath functionsJS functions for Maths.16 pagesArray functionsFunctions to add, get and remove items from arrays.23 pagesNetwork functionsFunctions for calling external APIs and sites.13 pagesOutput functionsBasic functions for output and formatting.33 pagesString functionsFunctions to read and manipulate string variables.36 pagesValidation functionsHelper functions to easily validate values in API functions.12 pagesShare functionsFunctions to share files and folders, publish them, and send documents and forms by email.17 pagesAuthenticationFunctions for authenticating users with JWT cookies, controlling access to API endpoints, and managing sessions.6 pagesMail functionsFunctions for sending email through SMTP and reading inbound mail through IMAP and POP3.13 pagesCounter functionsFunctions to read, increment and set persistent named counters in your workspace.3 pagesExamplesExplore examples to see and learn how to use HashScript in Docly™ to do wonderful things!10 pages