I see. You&#x27;re right, that is somewhat ugly.<p>I&#x27;ve actually considered the idea of hacking a JSX compiler to spit out Mithril output.<p>If you&#x27;re going to mix mark-up in your JavaScript, may as well do it with &quot;real&quot; mark-up instead of some imitation language. I&#x27;m still on the fence about whether I like mixing mark-up and code, but I&#x27;m leaning more toward at this point.