diff options
Diffstat (limited to 'gomplate.go')
| -rw-r--r-- | gomplate.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gomplate.go b/gomplate.go index fcc5792f..45cb2548 100644 --- a/gomplate.go +++ b/gomplate.go @@ -2,6 +2,7 @@ package main import ( "io" + "path/filepath" "text/template" "github.com/hairyhenderson/gomplate/data" @@ -45,11 +46,16 @@ func runTemplate(o *GomplateOpts) error { g := NewGomplate(d, o.lDelim, o.rDelim) + excludeList, err := filepath.Glob(o.excludeGlob) + if err != nil { + return err + } + if o.inputDir != "" { - return processInputDir(o.inputDir, o.outputDir, g) + return processInputDir(o.inputDir, o.outputDir, excludeList, g) } - return processInputFiles(o.input, o.inputFiles, o.outputFiles, g) + return processInputFiles(o.input, o.inputFiles, o.outputFiles, excludeList, g) } // Called from process.go ... |
