foolin

Results 19 comments of foolin

Why not use master layout file? ```go goview.Config{ Root: "views", //template root path Extension: ".tpl", //file extension Master: "layouts/master", //master layout file Partials: []string{"partials/head"}, //partial files Funcs: template.FuncMap{ "sub": func(a,...

Config set DisableCache: true ```go gv := goview.New(goview.Config{ //... DisableCache: true, }) ```

If you have a login page and dont want use master, you render name add ".html", like this: ``` gintemplate.HTML(ctx, http.StatusOK, "account/login.html", gin.H{ "title": "Backend title!", }) ``` - "account/login.html"...

Sorry, you can define function(): ``` type Item struct { Image string `pagser:"td->ImgAttr()"` } func (i Item) ImgAttr(node *goquery.Selection, args ...string) (out interface{}, err error) { return node.Eq(2).Find("img").AttrOr("src", ""), nil...

1. You can define a function write your self. 2. Try the code: ```go Firstname string `pagser:"h2:contains('Firstname')+p"` ``` The selector library: https://github.com/PuerkitoBio/goquery

You can config other extension: ``` go Extension: ".tpl", //file extension ```

``` struct { Headers []string Data []string ````` You can transform this struct yourself.