Make smarty extension work together with attr_list

Thanks Waylan for your advice, I have switched `smarty` extension to use its own `InlineProcessor`.