support compacted htmls as views