schollz / cowyo

A feature-rich wiki webserver for minimalists :cow: :speech_balloon:
https://cowyo.com/
MIT License
920 stars 69 forks source link

Make the 'view' link do something helpful #113

Closed DanielHeath closed 6 years ago

DanielHeath commented 6 years ago

While I was doing that I reformatted the template to use somewhat-consistent indentation.

Sorry for the giant diff - I checked all the routes I saw listed to ensure everything still renders right.

DanielHeath commented 6 years ago

I can split this up if need be; my branch now has fixes for #107 and #101 .

I've also got it to do hot-template-reloading in development, reduced unnecessary saves (by only updating a page if you've changed its contents), and extracted the JS and CSS into their own files (so they can be cached, and also so that index.tmpl doesn't hit >1000 lines)

schollz commented 6 years ago

@DanielHeath, this is a truly amazing contribution! Thank you so much. I really like your trick of using window.cowyo to access the variables in the javascript static resources. I actually wanted to do that, but I didn't know how - now I do! Thanks also for teaching me something cool!