Add function to read template for bash.