add snippet for generate method assign of smarty