Smarty template engine provides variety of functions to replace variables in a html templates for example. assign, assign_by_ref. I would like to add one simple extension to assign function. This function will take an associative array and