Added optional fourth step on appending the compiled html to the Dom.