Closed Sets88 closed 10 years ago
Why is this better as a callback than just a string base URL?
because there much more flexibility, for example: you have on your page incorect paths like: google.com/test/, without "http://" with string base url, it'll be understood as local relative link, but in call back you can operate whith such links as you like
Okay, that makes sense. Pretty great how I forgot about this for eight months, right?
Sometimes you need to dump html page and then save it to pdf, but it'll raise an exception, because of relative paths in urls i added additional callback function, which user can use to make absolute paths in urls, same thing i've seen in pisa(https://pypi.python.org/pypi/pisa/) here is simple example:
That, what i needed: