added new demo: integrating with smarty