Working with templates in WordPress is something that’s not uncommon. Everything is a template of sorts – from the main page template, single page template, 404 template – all the way to custom templates….
Source: https://tommcfarlin.com/body-class-based-on-a-template/