Event-driven template rendering inspired by Jekyll