diff --git a/sui/core/editor.go b/sui/core/editor.go index dbe109b0..ea615e69 100644 --- a/sui/core/editor.go +++ b/sui/core/editor.go @@ -49,6 +49,47 @@ func (page *Page) EditorRender(request *Request) (*ResponseEditorRender, error) res.Scripts = append(res.Scripts, filepath.Join("@pages", page.Route, page.Name+".ts")) } + // Render tools + // res.Scripts = append(res.Scripts, filepath.Join("@assets", "__render.js")) + + // doc, _, err := page.Build(&BuildOption{ + // SSR: true, + // AssetRoot: request.AssetRoot, + // }) + + // doc.Selection.Find("body").AppendHtml(` + // + // `) + + // html, err = doc.Html() + // if err != nil { + // return nil, err + // } + + // fmt.Println(html) + data, setting, err := page.Data(request) if err != nil { res.Warnings = append(res.Warnings, err.Error())