Recursive rendering of hierarchical data

Rendering an array of data that has a variable depth and an unknown number of nodes poses a bit of an issue when trying to faithfully recreate that structure for a visitor, how do you render a dynamic array of data that is variably deep? Recursive elements.

Recursion is “…the process a procedure goes through when [...]