Re:Sr.ht becomes Sourcehut
by nixpulvis on Wednesday February 06, 2019 @07:00PM
(#19101537)
"All features work without JavaScript" oh hello there, my new friend. :)
[ Parent
| on HN ]
Re:Sr.ht becomes Sourcehut
by combatentropy on Wednesday February 06, 2019 @07:20PM
(#19101708)
Indeed, I haven't seen a single script tag in any of the pages.
It's written in Python, using Flask, https://drewdevault.com/2019/01/30/Why-I-built-sr.ht-with-Fl...
There is javascript for progressive enhancement on some pages. E.g. submitting comments on tickets by pressing Ctrl+Enter, or selection of ranges of lines in git blob view.
For example: https://git.sr.ht/~sircmpwn/sourcehut.org/tree/master/conten...
But everything is designed to work well without JS first.