docs: def deploy_templates():
      """
      Deploy any templates from your shortest TEMPLATE_DIRS setting
      """
      
      deployed = None
      if not hasattr(env, 'project_template_dir'):
          #the normal pattern would mean the shortest path is the main one.
          #its probably the last listed
          length = 1000   
          for dir in env.TEMPLATE_DIRS:
              if dir:
                  len_dir = len(dir)
                  if len_dir < length:
                      length = len_dir
                      env.project_template_dir = dir
      
      if hasattr(env,'project_template_dir'):
          remote_dir = '/'.join([deployment_root(),'env',env.project_fullname,'templates'])
          if env.verbosity:
              print env.host,"DEPLOYING templates", remote_dir
          deployed = deploy_files(env.project_template_dir,remote_dir)
      return deployed