A Rust framework for creating web apps
ElContainer
, imported in prelude, renamed to View
. (Breaking)El
: Now wrapped in Node
, along with
Empty
and Text
. Creation macros return Node(Element)
. (Breaking)disabled
, autofocus
, and
checked
are handled (Breaking)MessageMapper
now accepts closuresOrders
is a trait now instead of a struct. (Breaking)clone_app
and msg_mapper
which can allow access to app instance.routes
now accepts Url
instead of &Url
(Breaking)raw!
, md!
, and plain!
macros that alias El::from_html
, El::from_markdown
,
and El::new_text
respectivelyAttrs!
and Style!
macros can now use commas and whitespace as separators,
in addition to semicolonsclass!
macro, similar to Elm
's classList
Listener
now implements MessageMapper
El methods
add_child
, add_style
, add_attr
, and set_text
now return the elements,
allowing chainingset_text
. Renamed to replace_text
. Added add_text
, which adds
a text node, but doesn't remove existing ones. Added add_class
. (Breaking)requestAnimationFrame
, which improves render performance,
especially for animationspx
. Added unit!
macro in its place.Map
can now be used directly in elements, without needing to annotate type and collect
(ie for child Elements
, and Listener
s)empty
elements at the top-level were rendering in the wrong orderempty!
macro, which is similar to seed::empty
Vec<El>
weren't rendering properlyviewBox
attributeupdate
fn now accepts a (new) Orders
struct, and returns nothing. Renders occur implicitly,
with the option to skip rendering, update with an additional message, or perform an asynchronous
action. (Breaking).mount()
now accepts elements. Deprecated .mount_el()
log
function and macro now support items which implement Debug
routing::push_path
function (breaking)seed::update
function, which allows custom events, and updates from JS.Vec<El<Ms>>
, El<Ms>
, or something else implementing
the new ElContainer traitVec<El<Ms>>
instead of El<Ms>
, mounted directly to
the mount point. (Breaking)push_route()
can now accept a Vec<&str>
, depreciating push_path()
.update
function now takes a mutable ref of the model. (Breaking)Update
(update's return type) is now a struct. (Breaking)App
through the view func. (breaking)Href
attribute
with value as a relative linkClone
select
elements