Updated render() to compile templates and updated demo with performance info