Added partition.
Template can take wildcards and directories.

wildcards are expanded and directories are expanded by finding
all files in the directory. the error message for unsupported
filetypes has been removed.