It includes an net/http.Handler StaticRenderer (https://sourcegraph.com/github.com/sourcegraph/webloop/symbo...) that you can use to transparently render static HTML from a dynamic app, for search engines, social previews, etc. There's an example application of this using an AngularJS app.
It includes an net/http.Handler StaticRenderer (https://sourcegraph.com/github.com/sourcegraph/webloop/symbo...) that you can use to transparently render static HTML from a dynamic app, for search engines, social previews, etc. There's an example application of this using an AngularJS app.
There's also an included static-reverse-proxy program (https://sourcegraph.com/github.com/sourcegraph/webloop/tree/...) that reverse proxies a dynamic app, returning statically rendered HTML. See the README (https://sourcegraph.com/github.com/sourcegraph/webloop/readm...) for usage info.
I'd love to get feedback on this library and get other folks involved!