dev_html()
gains an exclude
argument that prevents
them from being skipped in case they are dynamically generated.App
object to extend functionality.Plugin
s are R6 classes that have a specific interface. They can be
attached and detached from apps at initialization and runtime. self$app
Plugin
with name test
will cause it to be accessible via app$test
). We
also filter out irrelevant methods by default.html_template()
gains a deps
function to attach additional HTML
dependencies. html_mustache()
uses [whisker::whisker.render
] to render the elements,
which has better support for iterating and conforms to the {{mustache}}
standard.Application
is removed as it was a hacky implementation and wasn't
very easy to grok. It is replaced by far more flexible plugin interface.Fire
and App
gain a $clear_data()
method to clear all data.html_template()
allows rendering an HTML template.html_render_document()
to html_render()
html_render_fragment()
and instead installed fragment
arguments to html_render()
html_build()
to html_tags()
html_render_script()
to html_script()
Application
to chain more than 2 App instances.App
object into HTMLApp
, TestApp
, PerfApp
, AsyncApp
,
so that we need to import what we need. Application()
allows one to combine different app instances functionality.
This allows us some flexibility of composition despite being constrained
to {R6}
's inheritance model.discard = TRUE
to flip the selection.$plugin_attach(bind = TRUE)
makes it available in
the root app namespace.App
class is unlocked.app
autocomplete helper.response
autocomplete helper.html_build()
allows for easy building of packagesFire
and App
gain a $data
field for conveniently accessing data.dev_html()
and
dev_app()
, to ensure that it always picks up the right environment.html_render()
to a different src directory{future}
and {fastmap}
.html_render_script()
has new arguments that allow it to render singleton
scripts or those located in the <head>
tag.ws
query parameter, the
client ID is appended with +<type>
so that we can distinguish different
kinds of websocket connections from the same client.$sockets
method.assert_route_handler()
checks if handlers are valid functions.assert_tags()
ensures that these are tags from {htmltools}
.html_copy_dependency()
.<head>
tag.dev_app()
no longer browses by default even if interactive.dev_app()
companion functions.App$static()
html_render_script()
now escapes its contents{checkmate}
.pkgdown
documentation index is cleaned up.dev_app()
) or
static pages (dev_html()
).$events
method with help for handler functions for routes.HTMLApp()
- an App that can serve HTML via router_html(){htmltools}
Fire
object which is an adapted version of [fiery::Fire
] that allows
detaching plugins, used {httpuv}
's staticPaths
, and more. App
object from which all variations will inherit. Has a prefixed API
and some helpers to conveniently add routes.NEWS.md
file to track changes to the package.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.