anp / moxie

lightweight platform-agnostic tools for declarative UI

Home Page:https://moxie.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mox parse failure for `<div/>` is cryptic

anp opened this issue · comments

error: input ends before expected
  --> dom\examples\todo\src\lib.rs:28:5     
   |
28 | /     mox! {
29 | |         <div>
30 | |             <section class="todoapp">
31 | |                 { input_header() }   
...  |

for this code

    mox! {
        <div>
            <section class="todoapp">
                { input_header() }
                { main_section() }
            </section>
        <div/> // <-- issue here
    }