Nothing
New Features
engine() method set custom renderers, pull/66.set_error() method to set a global error handler, pull/64.Changes
httpuv::service() instead of a while loop, pull/98.create_dockerfile(), pull/116Bug Fixes
cache_templates method to cache templates
in memory.use_html_template to use htmltools::htmlTemplate as
rendering.as_renderer) are now more robust.limit field to protect against large uploads.engine method on router to set custom renderers (use deprecated for custom renderers).Breaking
Response method status renamed to set_status
(this is to allow having status as a field).Changes
jobj function to serialise objects to JSON in render.host and port to start() method.host and port active bindings.is_running field to private.status active binding on Response.get_header, set_header, and set_headers to Response.parseCookie JavaScript helper function to JavaScript file.as_cookie_parser.as_cookie_preprocessor.cookie method on Response take options.clear_cookie method to Responsecontent_* family of convenience function to set content type headers.serialiseresponse or send-like functions, use
header method.set_header in favour of header method.header_content* methods to easily set Content-Type.HEADERS is always a list.set and get on Response and Request, this is no longer
needed the environments are no longer locked; res$myVar <- 2L.status argument of responses, the active binding should
be used instead; res$status <- 404L.get_header method to the retrieve a specific method.image, png and jpeg methods to Response to serve images.ggplot2 method to Response.use method on Router these will only be applied to paths
of said router.parse_* methods to the Request.path defaults to /.parser_* methods and fuctions.mockRequest to for testing purposes.port, host, and websocket active bindings.Breaking change
The render and send_file methods of the Response object now
expect the full path to the template, with the file extension.
Where one would before res$render("home"), now one
res$render("templates/home.html").
Similarly, in said templates, to import partials,
use full path relative to the template in which the partial is used
e.g.: from [! header.html !] to [! partials/header.html !].
Changes
set and get methods on request store in environment to allow
locking variables when using set.Logger class, see log package.host to free port fetch function.Response class.Request class.set and get methods on Request and Response accept character
strings as name.Dependsuse to easily se multiple
middlewares at once.render method correctly sets the Content-type header.headers method more robust to avoid duplicated headers.token_create function.cookie method to the Response class to easily set cookies.cookie field to Request to hold parsed HTTP_COOKIE.sendf method to Response class to pre-process request
with sprintf.get_headers method to Response to retrieve currently set headers.Response and Request.log argument of ambiorix constructor now defaults to TRUE.md method to Response to render .md files.set_log* functions to allow using custom logs.create_ambiorix, see ambiorix.generator.add_template, see ambiorix.generator.Logger class in favour of the log package.parse_json #36create_ambiorix: moving to ambiorix.generator package.add_template: moving to ambiorix.generator package.all method to define route and handler for all methods GET, POST, PUT, DELETE, and PATCH.use method now accepts a function which is run every time the server receives a request.set and get to request to add and retrieve params (namely with the middleware)check_installed, see #33Initial version.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.