Generating snippet HTML rather than full blown document