Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {namespace MyComponent}
- {template .render}
- {@param attrs: map<string, string>}
- {let $attrs_ kind="attributes"}
- {foreach $key in keys($attrs)}
- {$key}="{$attrs[$key]}"
- {/foreach}
- {/let}
- <div {$attrs_}>Hello World</div>
- {/template}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement