added frappe.render_template and fixed string to html formatting
doc.update is chainable