From: Brian I. <in...@tt...> - 2002-03-07 07:47:05
|
On 06/03/02 23:24 -0500, Clark C . Evans wrote: > On 02/03/02 17:41 -0800, Brian Ingerson wrote: > > I want to add a transfer to the yaml.org domain. > > > > !http://yaml.org/include > > > > A YAML Loader would use this to parse a YAML document from an > > external stream and hang the resulting graph in the place of > > that node. The transfered string would be a URI: > > > > foo: !include file://home/ingy/foo.yaml > > bar: !include http://ingerson.com/foo.yaml > > > > This works for me. The contents of the document is included > but not the separator? No. You've got it all wrong. The parser doesn't do anything with this. The loader does. The loader would start a new parser for the included stream. It would hang the resulting graph in place of the !include node. > > | 1) Since a file (stream) may contain several documents, the loader > | should load them as a sequence. > | 2) If a particular document/douments is desired you can specify > | it/them like: > | > | - !include file://home/ingy/foo.yaml#1 > | - !include file://home/ingy/foo.yaml#2,5-7 > > Nice. Are the separators included? If so, then this > should be a document level directive... no? No. Since this is a Loader only issue it has no effect at all on our productions. I don;t want this a syntax level include, and I doubt Oren would either. I seem to remember him commenting on it before. > > --- #include:file://home/ingy/foo.yaml#2,5-7 > > | Since nobody seems to want to talk about this > > Sorry for not responding much the last week... I had > a server die on me and was busy moving stuff around > in emergency mode. Things are a bit more normalized now. No worries. :) Cheers, Brian |