Two tags write the parts of an HTML tag that depend on data, so a template needs no
{if} inside a tag to leave an attribute out.
|
PHP fragments/html_1.php |
HTML fragments/html_1.pad |
Result |
|---|---|---|
|
|
A panel
|
The result is easiest to see in the page source: the button reads
<button disabled title="Saves the "draft" <now>" aria-expanded="false">
and the div class="panel active".
name=expression - the attribute with its value, quoted and escaped.disabled, checked, selected, required, hidden ... - is written bare when its value is true and left out when it is not.false stays aria-expanded="false".data-id, aria-label - and never engine options: content= is the meta attribute.name=condition puts the name in when the condition holds.