I would like to implement a different non-HTML DOM backend for Knockout JS, likely within a non-browser type of environment (likely Node.js). Specifically, there exists an old, simple, static UI framework that I'd like to wrap with a DOM and then use with Knockout. I understand that Knockout itself is at least able to operate within Node.js without a browser environment (see here for example), but I'm wondering what I need to implement to create an entirely different DOM.
- Is it something where I can override a few DOM manipulation classes with my own implementations?
- Is there any notion of a DOM interface?
- Or will I likely need to do something from the ground up with an alternate ko.applyBindings, etc.?
I'm just trying to figure out if I'm mostly crazy or completely crazy with regards to the scope of work.