Skip to content

Commit

Permalink
Change AssetFS to method
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Jul 13, 2017
1 parent 322d3b1 commit eed5c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func init() {

// New new widgets container
func New(config *Config) *Widgets {
widgets := &Widgets{Config: config, funcMaps: template.FuncMap{}, AssetFS: assetfs.AssetFS.NameSpace("widgets")}
widgets := &Widgets{Config: config, funcMaps: template.FuncMap{}, AssetFS: assetfs.AssetFS().NameSpace("widgets")}

if root != "" {
widgets.RegisterViewPath(path.Join(root, "app/views/widgets"))
Expand Down

0 comments on commit eed5c14

Please sign in to comment.