There is a SmartyExtension for that. fix #3