v2.0.4: Improves template path handling
Refactors template path determination to use a getter method. This change replaces direct access to the `$templateFilename` property with a call to `getTemplateFilename()`. This provides more flexibility for overriding the template path determination logic in subclasses, and allows for a consistent way to retrieve the template path.