Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yosssi committed Feb 25, 2014
1 parent 61c5f36 commit 09c4512
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var g = gold.NewGenerator(false)

func handler(w http.ResponseWriter, r *http.Request) {
// ParseFile parses a Gold templates and
// returns a html/template package's template.
// returns an html/template package's template.
tpl, err := g.ParseFile("./top.gold")

if err != nil {
Expand Down Expand Up @@ -137,4 +137,19 @@ becomes
</p>
```

### Adding Attributes to Tags

```gold
a href=https://github.com/yosssi/gold target=_blank Gold GitHub Page
button data-action=btnaction style="font-weight: bold; font-size: 1rem;"
| This is a button
```

becomes

```html
<a href="https://github.com/yosssi/gold" target="_blank">Gold GitHub Page</a>
<button data-action="btnaction" style="font-weight: bold; font-size: 1rem;">This is a button</button>
```

## APIs

0 comments on commit 09c4512

Please sign in to comment.