Template using DocumentFragment