All AbterCMS backend implementations must provide a simple templating system that enables rendering various template types as HTML.
MUST BE
wrapped in double braces and MUST HAVE
a template type descriptor and an entity descriptor separated by a forward slash.MUST NOT
include white-spaces.MAY
be preceded or followed by a number of whitespace characters.MUST NOT
be empty.MAY
only contain characters from the English alphabet, digits, underscores and dashes.MAY
only contain characters from the English alphabet, digits, underscores, dashes and forward slashes.MUST BE
preceded by and followed by an alphanumeric character.SHOULD
only contain lowercase characters and prefer dashes instead of underscores.Valid template examples:
{{var/author}}
{{0-1/author}}
{{block/author/name}}
{{vaR-2/autH0R}}
{{ vaR-2 / autH0R_ / NAME }}
Invalid template examples:
{{ abc }}
(1.){{var/author} }
(2.){{var/}}
(4.){{/author}}
(4.){{v@r/author}}
(5.){{var/@uthor}}
(6.){{0-/author}}
(7.){{-0/author}}
(7.)