-
Notifications
You must be signed in to change notification settings - Fork 3
fig:auto
Gabriel Zerbib edited this page Jul 26, 2015
·
1 revision
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).
Expression. If evaluating to true, indicates that the tag is preferred auto-closed (provided that you don't supply explicit inner contents).
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" />