mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
Fix determining if embedded templates should be used (#55)
This commit is contained in:
@@ -2816,7 +2816,7 @@ func init() {
|
||||
}
|
||||
|
||||
var err error
|
||||
if viper.GetBool("standalone") {
|
||||
if *init || viper.GetBool("standalone") {
|
||||
tmpls, err = templates.New().ParseEmbed(embeddedTemplates, "templates/")
|
||||
} else {
|
||||
tmpls, err = templates.New().ParseDir("./templates", "templates/")
|
||||
|
||||
Reference in New Issue
Block a user