Skip to content

fig:void

Gabriel Zerbib edited this page Apr 10, 2014 · 1 revision

fig:void Attribute

This attribute lets you explicitly declare that and XML empty tag must be render without a closing tag or a closing slash character.
This is useful when you need to produce the tags: <br>, <img>, <input> and so on, which HTML5 expect as void.

Value

Expression. If evaluating to true, the engine will produce a void tag, provided that it has no content. If it does, the void directive is ignored.

Example

FigDice Template:

<br fig:void="true" />

Result

<br>
Clone this wiki locally