theplant / containers

Better structures for building web applications
1 stars 0 forks source link

Clean up and separate #7

Closed sunfmin closed 7 years ago

sunfmin commented 7 years ago

Page Handler will identify it’s a Reloadable, and automatically wrap it, and add ReloadableScript to the end of the page.

bodhi commented 7 years ago

Page Handler will identify it’s a Reloadable

Another way to do it is to have func reloading.Reloadable(Page) Page that takes the list of containers generated by the page and always adds the reload script container to the end.

sunfmin commented 7 years ago

@bodhi This time it's clean, ;-), Page interface is powerful too.

sunfmin commented 7 years ago

ready for production!