added support for including html snippets