1
0
mirror of https://github.com/actix/examples synced 2025-02-02 17:39:05 +01:00
2022-02-18 02:01:48 +00:00

12 lines
282 B
Handlebars

{{!
Welcome card:
args:
- tag
- id
- tail
!}}
{{#unless tag.is_match(r"^p|(h[1-6])$") && !id.is_empty() }}
{{$ "Need static args: tag: str /^h[1-6]$/, id: str" }}
{{/unless }}
<{{ tag }} id="{{ id }}" class="welcome">Welcome{{ tail }}</{{ tag }}>