Implement template files loading.