diff options
Diffstat (limited to 'templater/templater.go')
-rw-r--r-- | templater/templater.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/templater/templater.go b/templater/templater.go index f4be1e6fa60d..27beff371e5c 100644 --- a/templater/templater.go +++ b/templater/templater.go @@ -1,16 +1,16 @@ package templater import ( + "bytes" "fmt" "io/ioutil" - "strings" "os" "path" + "strings" "text/template" - "bytes" - "github.com/tazjin/kontemplate/context" "github.com/polydawn/meep" + "github.com/tazjin/kontemplate/context" ) // Error that is caused by non-existent template files being specified @@ -28,7 +28,7 @@ func LoadAndPrepareTemplates(c *context.Context) ([]string, error) { output := make([]string, 0) for _, rs := range c.ResourceSets { - fmt.Fprintf(os.Stderr,"Loading resources for %s\n", rs.Name) + fmt.Fprintf(os.Stderr, "Loading resources for %s\n", rs.Name) rp := path.Join(c.BaseDir, rs.Name) files, err := ioutil.ReadDir(rp) @@ -40,7 +40,6 @@ func LoadAndPrepareTemplates(c *context.Context) ([]string, error) { ) } - for _, file := range files { if !file.IsDir() && isResourceFile(file) { p := path.Join(rp, file.Name()) |