Added render template erlydtl, implemented handling of some errors