Skip to content

Instantly share code, notes, and snippets.

@ScreamingTaco
Created July 19, 2019 20:10
Show Gist options
  • Save ScreamingTaco/95d7dc70dc9f777959e483de872bcdc8 to your computer and use it in GitHub Desktop.
Save ScreamingTaco/95d7dc70dc9f777959e483de872bcdc8 to your computer and use it in GitHub Desktop.
Example of how to use vg-for. See vugu docs for more info.
<div class="vg-for-example">
<p vg-for='i := 1; i <= 10; i++' vg-html='strconv.Itoa(i) + ". This is item " + strconv.Itoa(i)'></p>
</div>
<style>
.vg-for-example { font-family: Verdana, Geneva, sans-serif }
</style>
<script type="application/x-go">
import "strconv"
</script>
@ScreamingTaco
Copy link
Author

Check out Vugu for more info.

Home
Github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment