Else-Layout¶
The else-layout
tag use for determine no-data template when rendering result don’t generate result.
Note
Renderable Commands can contains only one else-layout
tag.
1 2 3 | <else-layout>
[template]
</else-layout>
|
Important
The incomplete
tag has no attribute or child tags.
template html
[##-notation
¶
Determine template that rendering process use it as no-data in generate output result.
In else-layout
tag, child elements considered as template
.
Note
For see more Information about [##-notation
,see [## Notation
Remarks¶
If Rendering result is empty and no tags generated, render engine use else-layout
tag form present no-data output.
It’s important to remember that template
only use in empty rendering result and not when data source not found in Data Binding process.
Rendering result is empty if for example for any data item in data source
, no matched face funded.
For example in this Print Command command:
1 2 3 4 5 6 7 8 9 10 11 | <basis core="print" datamembername="db.numbers">
<face filter="false">
never print
</face>
<else-layout>
print always
</else-layout>
</basis>
|
The only face
has filter
with false
value that prevent any matching happen.
In this case :class:’else-layout’ tag template
used as generated result:
1 | print always
|