stripTemplateSuffix function

String stripTemplateSuffix(
  1. String path
)

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;