render html preview as standalone