- or download this
<%filter Div($class)>
<div class="<% $class %>">
<% $yield->() %>
</div>
</%filter>
- or download this
% $.Div("row") {{
1 The "$yield->()" method returns everything from here (free text)
...
2 even could have another nested filter, etc...
% }}
% }}
- or download this
<div class="row">
1 The "$yield->()" method returns everything from here (free text)
...
2 even could have another nested filter, etc...
</div>
</div>
- or download this
: macro div -> ($cls,$str) {
<div class="<: $cls :>">
<: $str :>
</div>
: }
- or download this
: div("row",
: div("col",
: "my string"
: )
: )
- or download this
: div("col",
nested
here
: )
: )