I just thought I’d show a way to do this, since the instructor mentioned that it could be done.
The only draw back to doing it this exact way is, it doesn’t work on cyclic curves.
I found a way to make UVs for cyclic curves, but I haven’t tested it enough to know for sure if it works in all cases.
I had to use a fair bit of index manipulation in the face and face-corners domains to figure out how to get it to work.
I thought of a few problems with the old node group, chief among them being not always making UVs for the caps of the mesh. Below is the new node group.