Re: merging into previously merged anchor?

Trans <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <14639635.29.1335476830763.JavaMail.geo-discussion-forums@ynlm19>

On Wednesday, February 22, 2012 8:24:11 PM UTC-5, Patrick J. Collins wrote:
>
> Hi,
>
> I am wondering if there is a way to do:
>
> list: &list
>   item_1: some item
>   item_2: some other item
>
> If I try to do this sort of then, list_container will have a list with
> only one item in it, because it overwrites the previously merged list--
> so I am wondering how I can just append item_3 to that merged list?  Is
> this possible?
>

I think you misinterpreted your example. Try:
 
    list_container:
      <<: *list
      item_3: an item specific for this list container 

 

>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.