Template load error: Unexpected token "name" of value "replace"