fix: avoid errors thrown on empty template files
test: added travis CI & more unit tests