yew/packages/yew-macro/tests
Cecile Tonglet 3858aededd
Add the ability to add child nodes conditionally in `html!` (#1609)
* Initial commit

Forked at: 66d506e133
Parent branch: origin/master

* Add the ability to add child nodes conditionally in html!

* WIP

Forked at: 66d506e133
Parent branch: origin/master

* CLEANUP

Forked at: 66d506e133
Parent branch: origin/master

* Experiment

* Failing test

* More tests

* More tests

* Add new HtmlIterable with syntax `for {...}` instead of `{for ...}`

* Remove HtmlIf from HtmlRoot (already done in HtmlTree)

* WIP

* WIP

* WIP

* WIP

* Revert

* CLEANUP

* WIP

* CLEANUP

* Remove IterableNew

* Renamed HtmlBranch to HtmlRootBraced and moved to mod.rs

* Update yew-macro/tests/html_macro/html-if-pass.rs

Co-authored-by: Simon <simon@siku2.io>

* Suggestion

* Oops

* Added ToNodeIterator to HtmlIf

* Improve error spans

* More html!()

* Move tests to not use browser

* Multiple children in if-expr

* Clippy fix

* Clippy fix again

* Re-trigger CI

* Apply suggestions from code review

Co-authored-by: Simon <simon@siku2.io>

* Replacing ParseResult by syn::Result everywhere

* Remove unnecessary &mut

* Attempt to add test on ToNodeIterator

* Clippy fixes

* Still works for some reason

* Revert "Attempt to add test on ToNodeIterator"

This reverts commit 75b1a85c28.

* fix CI

* add docs on website

* Apply suggestions from code review

Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>

* apparently I can't hide lines on website

* update stderr file

* will this work?

* fix bug where conditions can't be expressions

* better error message

* clippy & fmt

Co-authored-by: Simon <simon@siku2.io>
Co-authored-by: Hamza <muhammadhamza1311@gmail.com>
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
2021-11-22 20:13:03 +02:00
..
classes_macro Add fully qualified primitives in proc macro (#2037) 2021-09-07 09:40:09 +02:00
derive_props Update dependencies (#2064) 2021-09-19 11:14:08 +02:00
function_component_attr Remove extra braces in html_nested macro (#2169) 2021-11-21 17:09:30 +02:00
html_lints Add basic lints to the HTML macro. (#1748) 2021-11-21 19:54:49 +05:00
html_macro Add the ability to add child nodes conditionally in `html!` (#1609) 2021-11-22 20:13:03 +02:00
props_macro Add fully qualified primitives in proc macro (#2037) 2021-09-07 09:40:09 +02:00
classes_macro_test.rs Update Rust version for macro tests to 1.51 & enable const generics tests (#1801) 2021-03-30 22:35:21 +02:00
derive_props_test.rs Update Rust version for macro tests to 1.51 & enable const generics tests (#1801) 2021-03-30 22:35:21 +02:00
function_attr_test.rs Add `no_implicit_prelude` to proc macro tests (#2033) 2021-09-05 23:33:30 +01:00
html_lints_test.rs Add basic lints to the HTML macro. (#1748) 2021-11-21 19:54:49 +05:00
html_macro_test.rs Update Rust version for macro tests to 1.51 & enable const generics tests (#1801) 2021-03-30 22:35:21 +02:00
props_macro_test.rs Update Rust version for macro tests to 1.51 & enable const generics tests (#1801) 2021-03-30 22:35:21 +02:00