#18 implemented template sorurce loading.