stripTemplateSuffix function
Removes a trailing templateSuffix from a rendered brick path.
Implementation
String stripTemplateSuffix(String path) => path.endsWith(templateSuffix)
? path.substring(0, path.length - templateSuffix.length)
: path;