fix bug in $render, now support {%extends }
add exception handle inside the $render, change options.TMPL_EXTENSION to a Array type, contain all supported file extensions