`CSV2: [[a b c]]`,
)
}},
+ {"resources.Get", func() bool { return true }, func(b *sitesBuilder) {
+ b.WithTemplates("home.html", `NOT FOUND: {{ if (resources.Get "this-does-not-exist") }}FAILED{{ else }}OK{{ end }}`)
+ }, func(b *sitesBuilder) {
+ b.AssertFileContent("public/index.html", "NOT FOUND: OK")
+ }},
{"template", func() bool { return true }, func(b *sitesBuilder) {}, func(b *sitesBuilder) {
}},
var err error
fi, err = sourceFs.Stat(fd.SourceFilename)
if err != nil {
+ if os.IsNotExist(err) {
+ return nil, nil
+ }
return nil, err
}
sourceFilename = fd.SourceFilename