Support external dependencies specified via the options hash

This lets you control the created digest programmatically, for instance
when a different template was selected even though the format and
virtual path are the same.