StringBuilder in templates