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
<?php

$busy
= TRUE;
$help = 'Saves the "draft" <now>';
$open = 'false';
$active = TRUE;
$invalid = FALSE;

?>
<button {attrs disabled=$busy, title=$help, aria-expanded=$open}>Save</button>
<div class="{classes 'panel', active=$active, invalid=$invalid}">A panel</div>
A panel

The result is easiest to see in the page source: the button reads <button disabled title="Saves the &quot;draft&quot; &lt;now&gt;" aria-expanded="false"> and the div class="panel active".

attrs

classes