Double compilation when capturing

This fixes #331.

The problem is that the current implementation recompiles the content twice, which in the case of Haml means that compiled Haml content (i.e. HTML) gets interpreted as Haml and recompiled, which will fail because HTML is not Haml, hence the “nesting within plain text is illegal” error.