func()

in view/view.go [66:107]


func (p *Page) HTML(ctx context.Context) (h.HTML, error) {
	return &h.Document{
		XMLNS: h.XMLNS{"fb": "http://ogp.me/ns/fb#"},
		Inner: h.Frag{
			&h.Head{
				Inner: h.Frag{
					&h.Meta{Charset: "utf-8"},
					&h.Meta{Name: "viewport", Content: "width=device-width,initial-scale=1.0"},
					&h.Title{
						h.String(p.Title),
						h.Unsafe(" — Facebook Read Eval Log Loop"),
					},
					&h.LinkStyle{
						HREF: "https://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.2.0/css/bootstrap-combined.min.css",
					},
					&static.LinkStyle{
						HREF: p.config().Style,
					},
					p.Head,
				},
			},
			&h.Body{
				Class: p.Class,
				Inner: h.Frag{
					p.Body,
					&h.Div{ID: "fb-root"},
					&h.Div{ID: "FB_HiddenContainer"},
					&h.Script{
						Src: "https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js",
					},
					&h.Script{
						Src: "https://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.2.0/js/bootstrap.min.js",
					},
					&static.Script{
						Src:   p.config().Script,
					},
					p.config().GA,
				},
			},
		},
	}, nil
}