Statue
Easier way to query selectors for static HTML pages.
Spare yourself from writing
let window = window.unwrap;
let document = window.document.unwrap;
let work_area = document
.query_selector
.unwrap
.unwrap
.
.unwrap;
let layer_list_div = document
.query_selector
.unwrap
.unwrap
.
.unwrap;
let save_files_btn: = document
.query_selector
.unwrap
.unwrap
.
.unwrap
.into;
and write
initialize_elements!;
instead.
If you want to have Rc<Window> or Rc<Documemt>, or maybe hide them afterwards,
you can do so by supplying optional opts argument:
initialize_elements!;
If you want to invoke Document::query_selector_all, you can use Multi
selector query, though this functionality hasn't been tested thoroughly.