#![feature(test, use_extern_macros, proc_macro_non_items)]
extern crate squark;
extern crate squark_macros;
use squark::View;
use squark_macros::view;
fn v() -> View<()> {
let not_completed_count = 1234;
let has_completed = true;
view! {
<footer class="footer">
<h1 class="todo-count">
<strong>{ not_completed_count.to_string() }</strong>
item(s) left
</h1>
<br />
{
if has_completed {
view! {
<button class="clear-completed" onclick={ move |_| { Some(()) } } />
}
} else {
().into()
}
}
</footer>
}
}
#[test]
fn it_works() {
let v = v();
}