Added lib templates and erb support