v0.2.0
Adds namespaces to the context methods to more clearly group them by functionality, i.e., methods affecting the session are now accessed via,
func Handle(c *seatbelt.Context) error {
c.Session.Set("key", "value")
return nil
}
This also adds a helper to approximate the IP address of a request.
Updates the "values" API so that it used the request context for storage, rather than relying on a per-request map stored in the context instance.
This allows us to create arbitrary "values" instances from requests, which makes it possible to interact with this API anytime we have an HTTP request. This was required to merge the request-scoped "values" in the I18N template helper, which was (in my opinion) required to make it consistent with how the HTML rendering API and its usage of "values"feels.
Adds the same "reload" ability to i18n bundles that we have on HTML templates, so that in development, i18n bundles are re-compiled on each request, so they can be edited while a dev server is running without requiring a reload.