Fix digestion of templates with recursive dependencies.

Put a placeholder in the cache until the digest is computed.
Merge pull request #10 from macournoyer/master

Fix digestion of templates with recursive dependencies