## Merge

Implemented in class xdoclet.tagshandler.MergeTagsHandler.

- Block Tags
- Content Tags

### Block Tags:

#### ifMergeFileExists (block template)

Evaluates the body if the file exists specified by the "file" attribute.

file | The path to the file to be merged. The value of this parameter can have {0} in it, if so {0} is replaced with the current class name and system searches for the file in in mergeDir+packageName directory. {0} is for cases where you want to define and merge a file per each class.

#### merge (block template)

Merge contents of the file designated by the file parameter and evaluates the body if the file is not found. It searches for the file in the directory specified by mergeDir configuration parameter.

file | The path to the file to be merged. The value of this parameter can have {0} in it, if so {0} is replaced with the current class name and system searches for the file in in mergeDir+packageName directory. {0} is for cases where you want to define and merge a file per each class.
[generateMergedFile] | If true then process the merged file also, otherwise only merge it and do not process it. True if the default. Valid Values = {true,false}

### Content templates: