|
@ -67,46 +67,46 @@ func (gv *GoVue) initRender(debug bool) (err error) { |
|
|
govueScriptFile = "govue-dev.js" |
|
|
govueScriptFile = "govue-dev.js" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
polyfill, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", "polyfill.js")) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
headerScript, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", "header.js")) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
govueScript, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", govueScriptFile)) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mainScript, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", "runtime.js")) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//polyfill, err := gv.Resources.Asset(filepath.Join("govue-runtime", "polyfill.js"))
|
|
|
|
|
|
|
|
|
//polyfill, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", "polyfill.js"))
|
|
|
//if err != nil {
|
|
|
//if err != nil {
|
|
|
// return
|
|
|
// return
|
|
|
//}
|
|
|
//}
|
|
|
//
|
|
|
//
|
|
|
//headerScript, err := gv.Resources.Asset(filepath.Join("govue-runtime", "header.js"))
|
|
|
|
|
|
|
|
|
//headerScript, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", "header.js"))
|
|
|
//if err != nil {
|
|
|
//if err != nil {
|
|
|
// return
|
|
|
// return
|
|
|
//}
|
|
|
//}
|
|
|
//
|
|
|
//
|
|
|
//govueScript, err := gv.Resources.Asset(filepath.Join("govue-runtime", govueScriptFile))
|
|
|
|
|
|
|
|
|
//govueScript, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", govueScriptFile))
|
|
|
//if err != nil {
|
|
|
//if err != nil {
|
|
|
// return
|
|
|
// return
|
|
|
//}
|
|
|
//}
|
|
|
//
|
|
|
//
|
|
|
//mainScript, err := gv.Resources.Asset(filepath.Join("govue-runtime", "runtime.js"))
|
|
|
|
|
|
|
|
|
//mainScript, err := ioutil.ReadFile(filepath.Join("govue", "govue-runtime", "runtime.js"))
|
|
|
//if err != nil {
|
|
|
//if err != nil {
|
|
|
// return
|
|
|
// return
|
|
|
//}
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
polyfill, err := gv.Resources.Asset(filepath.Join("govue-runtime", "polyfill.js")) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
headerScript, err := gv.Resources.Asset(filepath.Join("govue-runtime", "header.js")) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
govueScript, err := gv.Resources.Asset(filepath.Join("govue-runtime", govueScriptFile)) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mainScript, err := gv.Resources.Asset(filepath.Join("govue-runtime", "runtime.js")) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
gv.jsRuntimePool = pool.NewJsRuntimePool(string(mainScript), gv.UseJsPath, gv.StaticPath, jsruntime.Relys{ |
|
|
gv.jsRuntimePool = pool.NewJsRuntimePool(string(mainScript), gv.UseJsPath, gv.StaticPath, jsruntime.Relys{ |
|
|
jsruntime.Rely{ |
|
|
jsruntime.Rely{ |
|
|
Src: string(polyfill), |
|
|
Src: string(polyfill), |
|
|