diff options
Diffstat (limited to 'tpl/resources')
-rw-r--r-- | tpl/resources/resources.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go index c24cd2b42..8b30f3156 100644 --- a/tpl/resources/resources.go +++ b/tpl/resources/resources.go @@ -34,6 +34,10 @@ import ( // New returns a new instance of the resources-namespaced template functions. func New(deps *deps.Deps) (*Namespace, error) { + if deps.ResourceSpec == nil { + return &Namespace{}, nil + } + scssClient, err := scss.New(deps.BaseFs.Assets, deps.ResourceSpec) if err != nil { return nil, err |