Skip to content

Commit

Permalink
Cleaning example
Browse files Browse the repository at this point in the history
  • Loading branch information
ivahaev committed Dec 27, 2015
1 parent 6690f8a commit 27e1a7c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,13 @@ Filename may be any of course. For slices use dot notation `{{items.name}}`. Whe
```

### Read template, render with context and save to disk.
Error processing omited in example.

```go
doc := xlst.New()
doc.ReadTemplate("./template.xlsx")
err := doc.Render(ctx)
if err != nil {
panic(err)
}
err = doc.Save("./report.xlsx")
if err != nil {
panic(err)
}
doc.Render(ctx)
doc.Save("./report.xlsx")
```

### Enjoy created report
Expand Down

0 comments on commit 27e1a7c

Please sign in to comment.