Function Updated 23 Oct 2026
guid()
Creates a new random GUID as 36 lower-case characters with hyphens, for example 3f2504e0-4f89-41d3-9a0c-0305e82c3301. Available as guid() and docly.guid(); crypto.randomUUID() gives the same format.
Parameters
This function takes no parameters.
Returns
A random GUID as a string.
Example
Mixed HTML (or any text file) with inline JavaScript between hash signs.
#docly.guid()#The template above produces this output:
15d3a633-7a21-49f0-aa9e-b653e806eb83