A compact XUV beamline for temporally and spectrally resolved studies