render.ascii ViewHelper <vhs:render.ascii>
Render: ASCII Character
Renders a single character identified by its charset number.
For example: <v:
v:iterator.loop` to render sequences or repeat the same character:
{v:render.ascii(ascii: 10) -> v:iterator.loop(count: 5)}
Copied!
And naturally you can feed any integer variable or ViewHelper return value
into the ascii
parameter throught render
to allow chaining:
{variableWithAsciiInteger -> v:render.ascii()}
Copied!
And arrays are also supported - they will produce a string of characters from each number in the array:
{v:render.ascii(ascii: {0: 13, 1: 10})}
Copied!
Will produce a Windows line break, rn.
Arguments
ascii
- DataType
- mixed
- Required
- false
- Description
- ASCII character to render