topiary-io / topiary

a modern content management system
Other
2 stars 0 forks source link

Set up admin templates #6

Closed doesntgolf closed 8 years ago

doesntgolf commented 8 years ago

Right now we basically need two templates: for viewing an index of dirs/files, and for editing a file. There's a great tutorial on Go html templates at https://golang.org/doc/articles/wiki/. (I used this tutorial extensively for making the admin writeable.) The full documentation for html/template is here.

doesntgolf commented 8 years ago

Admin templates are now in place via e378dec. As is now noted in the readme, the mechanism for grabbing the admin templates and assets is also now in place. (Though eventually we'll want to automate this to check for templates/assets at topiary start time, and if not, to grab them.) Now we can start to figure out how we want to structure the layout of the admin.

doesntgolf commented 8 years ago

Oh, and right now the templates are assuming that the admin dir is at /admin. Will definitely need to be updated to use the value from the config.