zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 48 forks source link

Add Type support to HTML render. #113

Closed vexorian closed 10 years ago

vexorian commented 10 years ago

I was trying to do #112, at least for my custom template. I found that there are issues at least in c++ where vector<int> would not render correctly in HTML (need to strip < > into &lt;&gt;). So I thought I would just add support for Type objects to the HTML renderer...

It turned out to be a complicated task, I had to modify LanguageManager to give access to the language renderer and TemplateEngine to pass the current language to the HTML renderer.

The type renderer works like this: