The licenses seem like visual noise in this context, while an extreme case, we end up with templates like this:
/* SPDX-FileCopyrightText: 2012-2025 Blender Authors
*
* SPDX-License-Identifier: MIT-0 */
shader name()
{
}
The user probably doesn’t know what SPDX or MIT-0 are… or if they should care.
Personally I’d opt for something less intrusive (a license file in the directory - using MIT-0), as well as a note in the user manual that templates are licensed MIT-0. This seems good enough for code-examples in the manual, so we could consider it acceptable for templates too.
An alternative solution could be to include license headers in the source files but strip the headers so we’re not displayed to users.
This means anyone looking around in our source files has licenses on all files, but we’re not bothering users with these details.