def write_file(file,path)
      #if a pre-existing file is specified in the includes list, copy that, if not write a blank file      
      if @template.includes.has_key?(file)
        begin
          content = Includes.copy_include(@template.includes[file],@template.path)
          file = replace_tags(file)
        rescue TypeError => e
          puts e.message
          exit
        end
      else
       file = replace_tags(file) 
        puts 'Creating blank file: ' + File.join(path,file)
        content=''
      end
      File.open(File.join(path,file),'w'){|f| f.write(replace_tags(content))}
    end
def write_file(file,path)
      #if a pre-existing file is specified in the includes list, copy that, if not write a blank file      
      if @template.includes.has_key?(file)
        begin
          content = Includes.copy_include(@template.includes[file],@template.path)
          file = replace_tags(file)
        rescue TypeError => e
          puts e.message
          exit
        end
      else
       file = replace_tags(file) 
        puts 'Creating blank file: ' + File.join(path,file)
        content=''
      end
      File.open(File.join(path,file),'w'){|f| f.write(replace_tags(content))}
    end
Checks if file is listed in the includes list and if so copies it from
 the given location. If not it creates a blank file.