added gloabl method render_str called within BlogHandler class