added "include" function to templates

added "include" function to templates