After each sub template was processed Requirements::includeInHTML() is included which appended requirements again.