Added simple template rendering and live preview.