klein/smarty library