Reduce usage of strformat, minor perf improvement

This commit is contained in:
Zed 2022-11-27 15:50:08 +01:00
commit 85316f8f8d
6 changed files with 37 additions and 32 deletions

View file

@ -81,7 +81,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; req: Request; titleText=""; desc="";
title:
if titleText.len > 0:
text &"{titleText}|{cfg.title}"
text titleText & " | " & cfg.title
else:
text cfg.title