Is there a way I can embed the code in a file present in github repository into a page of site being developed on node js.
Simplest I can think of is invoke a ajax call and pull the content into a dom element on the page.
Is there any other way out?
EDIT
Code on github is not nodejs code. A use case: I have ruby code committed and shared on github, now I want to refer that code on a site being created using nodejs.