def write(key, data = nil, parameters = {}, conditions = {})
      if writable?(key, parameters, conditions)
        if File.file?(path = pathify(key, parameters))
          write_file(path, data)
        else
          create_path(path) && write_file(path, data)
        end
      end
    end
def write(key, data = nil, parameters = {}, conditions = {})
      if writable?(key, parameters, conditions)
        if File.file?(path = pathify(key, parameters))
          write_file(path, data)
        else
          create_path(path) && write_file(path, data)
        end
      end
    end
Writes cached template to disk, creating cache directory
 if it does not exist.