Last active
March 30, 2017 00:04
-
-
Save mthadley/d99c7ddd656eb33f40523004205d062e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment