Skip to content

Instantly share code, notes, and snippets.

@fluffywaffles
Last active May 16, 2016 23:24
Show Gist options
  • Save fluffywaffles/fc1933eeb633b75af9b5be7938c8a5b5 to your computer and use it in GitHub Desktop.
Save fluffywaffles/fc1933eeb633b75af9b5be7938c8a5b5 to your computer and use it in GitHub Desktop.
<link2>
<a each={ items } class="btn btn-success" role="button" onclick={ goto( itemname ) }>
Get Buyer Link
</a>
<script>
this.items = [{
itemname:"LEI",
itemtag: "lei",
image:1,
price:0,
bidtime:24,
payment:"N/A",
pickup:"The Garage",
description:"NUvention Launch only."
}]
riot.route.start(true)
this.goto = function (itemname) {
return function () {
riot.route('/buy/' + itemname)
}
}
</script>
</link2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment