Added TEMPLATE_LOADED event when using non-URL based template