I made a similar library [1] using data-* attributes. It also supports nesting, looping and conditions. For event handling, I use function in object (a.k.a. method) while you support writing them inline.
Your way to support inline logic in the text and style is interesting.
Your way to support inline logic in the text and style is interesting.
[1] https://github.com/beenotung/data-template