Beispiel #1
0
func New(l *location.Location) *Component {

	if "" == l.Filename {
		l.Filename = "index"
	}

	html := ""
	css := ""
	js := ""

	return &Component{
		Location: l,
		Html:     &html,
		Css:      &css,
		Js:       &js,
		included: map[string]*Component{},
		Linked:   map[string]bool{},
		Files:    map[string]string{},
		TagsJs:   []string{},
		TagsCss:  []string{},
	}
}