len

Returns the length of the raw template.

This function does not generate a change.

Function

template.len()

Arguments

None

Return value

Returns the length of the raw template.

Example

This code uses len() to return the length of the template:

tpl = template("Hello {name}!");
tpl.len();

Return value in JSON format

13