Render template parameters

This commit is contained in:
Victor Zverovich
2024-06-01 08:30:25 -07:00
parent 418c5d0949
commit 6180442ed8

View File

@ -168,7 +168,8 @@ class CxxHandler(BaseHandler):
text += '>\n'
text += d.type + ' ' + d.name
if d.params is not None:
params = ', '.join([p.type + ' ' + p.name for p in d.params])
params = ', '.join(
[f'{p.type.replace("<", "&lt;")} {p.name}' for p in d.params])
text += '(' + params + ')'
text += ';'
text += '</code></pre>\n'