Recursively finds dependencies of style and template source files