Is it possible to create a recursive template only with knockout js?
I have a knockout object:
function FormElementNode(children, text, value) { v
Yes KnockOut supports recursive templates so you can reference and render the same template inside the template.
An example html in your case would look like this:
Demo JSFiddle.