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

Re: Local references in ReSpec

From: Robin Berjon <robin@w3.org>
Date: Mon, 12 Nov 2012 16:23:36 +0100
Message-ID: <50A11478.4000407@w3.org>
To: Frederick.Hirsch@nokia.com
CC: spec-prod@w3.org
On 09/11/2012 18:32 , Frederick.Hirsch@nokia.com wrote:
> ok, I figured it out, no array.
>
> in case it helps anyone else, the correct syntax appears to be:
>
> var respecConfig = {
>   specStatus: "FPWD-NOTE",
>   localBiblio:  { "FOO" : "something" },
>   localBiblio:   { "BAR" : "something else"},
> publishDate" "2012-11-11",
> ...

No it's not! The correct syntax is a simple object, just like in biblio.js.

var respecConfig = {
   ...
   localBiblio: {
     FOO:  "stuff",
     BAR:  "other stuff",
   },
   ...
};

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Monday, 12 November 2012 15:23:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 12 November 2012 15:23:46 GMT