It must take care of displaying gists with multiple files
Syntax highlighting is to be handled by our pre-existing syntax highlighting engine, all the onebox is to do is to decorate divs with the guessed syntax.
I thought of possibly using therubyracer to evaluate the gist js, but it inserts stylesheets. Additionally there is a possibly iframe approach but it will be both slower (and impact rendering) and more fragile.
I was following a similar approach to the blob oneboxer, that is to make requests to āGist APIā and build a HTML component on server side. It sounded clean for me.
However, Iām concerned about something that read here (https://developer.github.com/v3/#rate-limiting):
āFor unauthenticated requests, the rate limit allows you to make up to 60 requests per hour.ā
I think that is a bad idea to make requests to Gist API from server side, considering that low limit. So, what do you think about to make these requests from the client side @sam?
Some JavaScript would be added in the mustache templete to keep the component decoupled.