I believe, the following example is even closer to the elm architecture (using the great patty lib): [https://gist.github.com/stedi67/c242576b169ffd0d031a3858efe51dba](https://gist.github.com/stedi67/c242576b169ffd0d031a3858efe51dba)
Disclaimer: I'm not sure, if the added boilerplate is really worth the effort (and I'm a nim newbie)
