Skip to content

Instantly share code, notes, and snippets.

View ScreamingTaco's full-sized avatar

Carlos Vazquez ScreamingTaco

View GitHub Profile
@ScreamingTaco
ScreamingTaco / README.md
Last active August 17, 2019 19:58
Vugu form validation demo part 1

Vugu Form Validation Demo #1

This is a little experiment using vugu. For now, it just changes a field's label to its contents when you hit submit.

In part 2, there will be some more practical validation work.

@ScreamingTaco
ScreamingTaco / vg-for-example.vugu
Created July 19, 2019 20:10
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"