docs($compile): add note about recursive compilation in templates

Closes #3079
Closes #6869