W3C home > Mailing lists > Public > spec-prod@w3.org > October to December 2011

respec.js feature request

From: Bob Lund <B.Lund@CableLabs.com>
Date: Wed, 14 Dec 2011 15:37:42 -0700
To: "spec-prod@w3.org" <spec-prod@w3.org>
Message-ID: <CB0E7346.5D96%b.lund@cablelabs.com>
Hi,

First of all, thanks for respec.js.

Now the feature request. I find myself writing proposals that have mostly references that are not in bibref/bibio.js. I know that I can ask to have those added, and I might. But in the interim, and for others, I thought it would be useful if biblio.js checked for a locally defined object, say localbiblio, and if that was present updated berjon.biblo with the contents of localbiblio. I made a local copy of respec.js/js and respect.js/bibref and added this to the end of biblio.js

if (typeof localbiblio != 'undefined'){
for (i in localbiblio){
berjon.biblio[i] = localbiblio[i];
};
};

Now, I can add <script src="localbiblio.js"></script> (that defines localbiblio with my biblio entries) into the template before respec.js and my biblio stuff is added to berjon.biblio.

There are undoubtedly better ways this might be accomplished but perhaps you get the idea.

Thanks,
Bob Lund
Received on Wednesday, 14 December 2011 22:40:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:18 GMT