add custom_fragment attribute to directories hash
document the custom_fragment option for directory hashes
Merge pull request #290 from booo/custom_fragment

Custom fragment