- refs = reference_template.process(Introspect.references[i]);
-
- // HTML to put refs into
- html = File.read(html_file_path);
+ for (var i in Introspect.references) {
+
+ html_file_path = [ outputdir, lang.name, i + '.html'].join('/');
+
+ if (i == 'undefined') {
+ console.log("Undefined name space - ignored");
+ continue;
+ }
+
+ if (!File.isFile(html_file_path)) {
+ console.log("No HTML file " + html_file_path + " to insert references into - ignored");
+ continue;
+ }
+
+ refs = langs.reference_template.process(Introspect.references[i]);