diff --git a/spike/review/reinvent/ezmded/ui/index.html b/spike/review/reinvent/ezmded/ui/index.html
deleted file mode 100644
index a187906..0000000
--- a/spike/review/reinvent/ezmded/ui/index.html
+++ /dev/null
@@ -1,456 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/spike/review/reinvent/ezmded/ui/render.go b/spike/review/reinvent/ezmded/ui/render.go
index 5db4c81..e09b26a 100644
--- a/spike/review/reinvent/ezmded/ui/render.go
+++ b/spike/review/reinvent/ezmded/ui/render.go
@@ -36,10 +36,42 @@ func main() {
return oneT
}
data := map[string]interface{}{
- "Title": "my title here",
- "ID": "my-id-here",
- "PID": "my-pid-here",
- "PTitle": "my parent title here",
+ "This": map[string]interface{}{
+ "ID": "id00/id11",
+ "Title": "title11",
+ "PID": "id00",
+ "PTitle": "title00",
+ },
+ "Tree": []map[string]interface{}{
+ map[string]interface{}{
+ "ID": "id00",
+ "Title": "title00",
+ "PID": "",
+ "PTitle": "",
+ },
+ map[string]interface{}{
+ "ID": "id00/id10",
+ "Title": "title10",
+ },
+ map[string]interface{}{
+ "ID": "id00/id11",
+ "Title": "title11",
+ "PID": "",
+ "PTitle": "",
+ },
+ map[string]interface{}{
+ "ID": "id00/id11/id20",
+ "Title": "title20",
+ "PID": "",
+ "PTitle": "",
+ },
+ map[string]interface{}{
+ "ID": "id01",
+ "Title": "title01",
+ "PID": "",
+ "PTitle": "",
+ },
+ },
}
if err := recursePwd(func(p string) error {
switch path.Ext(p) {
diff --git a/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl b/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl
index fcc5fd1..bc87bb5 100644
--- a/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl
+++ b/spike/review/reinvent/ezmded/ui/templates/_editor.ctmpl
@@ -153,11 +153,11 @@
/
- {{ if ne .PID "" }}
- {{ .PTitle }} /
+ {{ if ne .This.PID "" }}
+ {{ .This.PTitle }} /
{{ end }}
-
{{ .Title }}
+
{{ .This.Title }}