>
> Multiple arguments would make the syntax even cleaner:
> <?* $str, 'js', 'html' ?>
>

I thought about it. Multiple arguments do not allow runtime modification
(and make the parser more complex).
Something like this:
<?php
    $context = [];
    if ($field->name == 'url') $context[] = 'url';
    $context[] = 'html';
?>
<div data-my-attr="<?* $field->value, implode('|', $context) ?>"></div>
​

Reply via email to