It'd be good to separate functionality and make the components strictly act as a data structure that can be accessed by the actual "renderer" that transforms it into HTML and places it on the page. This would also make .render and .renderString bit less obscure - they could act as implementations of the same core interface, rather than two separate functions with the same purpose.
It'd be good to separate functionality and make the components strictly act as a data structure that can be accessed by the actual "renderer" that transforms it into HTML and places it on the page. This would also make
.renderand.renderStringbit less obscure - they could act as implementations of the same core interface, rather than two separate functions with the same purpose.