Cue is a little different I think. It doesn't attempt to make writing configs less tedious through the use of functions.
It is more about schemas and reliably merging documents as far as I can tell. But weirdly given its focus on schemas I couldn't find any way for a document to link to a schema in-band!