Skip to content

Instantly share code, notes, and snippets.

@mthadley
Last active March 30, 2017 00:04
Show Gist options
  • Save mthadley/d99c7ddd656eb33f40523004205d062e to your computer and use it in GitHub Desktop.
Save mthadley/d99c7ddd656eb33f40523004205d062e to your computer and use it in GitHub Desktop.
{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