Skip to content

fig:auto

Gabriel Zerbib edited this page Jul 26, 2015 · 1 revision

fig:auto Attribute

With this attribute you can make sure that your tag is going to be auto-closed, provided that it doesn't contain content. This is useful when you need to put complex attributes to a tag (using children fig:attr tags) but you still want it to be auto-closed (hr, link, img tags for example).

Value

Expression. If evaluating to true, indicates that the tag is preferred auto-closed (provided that you don't supply explicit inner contents).

Example

FigDice Template:

<img fig:auto="true" src="image.png">
  <fig:attr name="class" value="'Line_' + color" />
</img>

Result

<img src="image.png" class="Line_blue" />
Clone this wiki locally