{% import "net/http" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% func Toolbar(u *user.User) %} {% endfunc %} {% func EditHTML(rq *http.Request, hyphaName, textAreaFill, warning string) %}

Edit {%s= beautifulLink(hyphaName) %}

{%s= warning %}





Cancel
{%s= Toolbar(user.FromRequest(rq)) %}
{%= editScripts() %} {% endfunc %} {% func PreviewHTML(rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) %}

Edit {%s= beautifulLink(hyphaName) %}

{%s= warning %}





Cancel

Note that the hypha hasn't been saved yet. Here's the preview:

{%s= renderedPage %}
{%s= Toolbar(user.FromRequest(rq)) %}
{%= editScripts() %} {% endfunc %} {% func editScripts() %} {% for _, scriptPath := range cfg.EditScripts %} {% endfor %} {% endfunc %}