Support for inline snippets

This fixes issue #15