files compiles ok
This commit is contained in:
@@ -119,11 +119,17 @@ newlines
|
||||
tmpl := t(p)
|
||||
defer log.Printf("rendering %s (...%s) as %s", templateToExecute, path.Join(path.Base(path.Dir(p)), path.Base(p)), target)
|
||||
if strings.HasPrefix(templateToExecute, "_") {
|
||||
testTemplate := `{{ define "test" }}`
|
||||
testTemplate := `
|
||||
{{ define "test" }}
|
||||
<body class="fullscreen" style="border: 10px solid red;">
|
||||
`
|
||||
for _, subtemplate := range always {
|
||||
testTemplate += fmt.Sprintf(`{{ template %q . }}`, subtemplate)
|
||||
}
|
||||
testTemplate += fmt.Sprintf(`{{ template %q . }}{{ end }}`, templateToExecute)
|
||||
testTemplate += `
|
||||
</body>
|
||||
`
|
||||
tmpl = template.Must(tmpl.Parse(testTemplate))
|
||||
templateToExecute = "test"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user