HAPEL calls the majority of its methods in the same way. This is known as the HAPEL Standard Parameter Schema. It would be redundant to document every method that uses this schema. As a result, a single example is shown below.
Simply replace method_name
with the desired function call as found in the HAPEL Core Method Reference Index.
method_name($child, $class, $id, $style, $data, $attr);
Parameter | Required | Default |
---|---|---|
$child | no | false |
$class | no | null |
$id | no | null |
$style | no | null |
$data | no | null |
$attr | no | null |
string
Usage:
echo tag('my-class','my-id');
Result:
<tag class="my-class" id="my-id">