add support for wrapping single text with complex dom template