mysterious-toddler-20573
06/04/2021, 2:35 AMsalmon-xylophone-28580
06/04/2021, 9:36 AMgentle-dream-18175
06/04/2021, 2:42 PMsalmon-xylophone-28580
06/04/2021, 3:29 PMfoo=foo, bar=bar over and over again. Or you use a hack like locals(). But this is ugly, since IDEs and linters won't know that a variable gets used. I asked at python-ideas and got positive feedback. There is already a PEP, but has staled since some time. See: https://mail.python.org/archives/list/python-ideas@python.org/thread/G723JTLPTG5L6LWU2XLVGHUZRHEWLRHT/freezing-crowd-50703
06/04/2021, 8:50 PMsalmon-xylophone-28580
06/04/2021, 9:14 PM<tags>. I am very used to these greater- and smaller-signs.freezing-crowd-50703
06/04/2021, 9:16 PMfreezing-crowd-50703
06/04/2021, 9:21 PMrefined-pillow-25368
06/04/2021, 10:08 PMsalmon-xylophone-28580
06/05/2021, 6:18 AMrefined-pillow-25368
06/05/2021, 8:32 AMsalmon-xylophone-28580
06/05/2021, 12:20 PMrefined-pillow-25368
06/05/2021, 12:27 PMsalmon-xylophone-28580
06/05/2021, 12:30 PMrefined-pillow-25368
06/05/2021, 2:59 PMpowerful-evening-99811
06/05/2021, 8:25 PMblue-sandwich-743
06/05/2021, 11:41 PMmysterious-toddler-20573
06/06/2021, 12:10 AMHX-Redirect response header with an empty response: https://htmx.org/reference/#response_headersmysterious-toddler-20573
06/06/2021, 12:10 AMblue-sandwich-743
06/06/2021, 12:19 AMmysterious-toddler-20573
06/06/2021, 12:24 AMmysterious-toddler-20573
06/06/2021, 12:25 AMHX-Redirect header (it will be platform specific how you do this, what are you using? Maybe someone here can help) then the browser will go to the new URLmysterious-toddler-20573
06/06/2021, 12:25 AMblue-sandwich-743
06/06/2021, 12:29 AMmysterious-toddler-20573
06/06/2021, 12:30 AMHX-Redirect header will do that client side redirect for you. You just need to respond with that header, set to the value of the URL you want to redirect torefined-pillow-25368
06/06/2021, 1:21 AMuser
06/06/2021, 12:36 PMmysterious-toddler-20573
06/06/2021, 12:38 PMmysterious-toddler-20573
06/06/2021, 12:38 PMhtml
<!-- this will get some content and add it to #another-div, then ensure that the top of #another-div is visible in the
viewport -->
<div hx-get="/example"
hx-swap="innerHTML show:top"
hx-target="#another-div">
Get Some Content
</div>user
06/06/2021, 12:48 PM