Closed CasperWA closed 3 years ago
Fixes #20
Check solution on binder.
The solution to make sure the correct base URL is always located, is to utilize the
resources
variable. However, this is not available in the spinner macro. To overcome this, I am now passing in theresources.base_url
in thespinner.html()
macro, which I can only do by "commandeering" the code wherespinner.html()
is called. Since this is done in thelab
Voilà template, I have copied over the relevantbody_header
block and changed the line that needed changing. Furthermore, the spinner macro, specifically thespinner.html()
macro now takes the addedbase_url
parameter as input.This has been tested both locally and on binder and seems to work as intended.
Great! This is very nice. Thanks.
Fixes #20
Check solution on binder.
The solution to make sure the correct base URL is always located, is to utilize the
resources
variable. However, this is not available in the spinner macro. To overcome this, I am now passing in theresources.base_url
in thespinner.html()
macro, which I can only do by "commandeering" the code wherespinner.html()
is called. Since this is done in thelab
Voilà template, I have copied over the relevantbody_header
block and changed the line that needed changing. Furthermore, the spinner macro, specifically thespinner.html()
macro now takes the addedbase_url
parameter as input.This has been tested both locally and on binder and seems to work as intended.