fix getFinalHTML to process template in SlidePanel