YAML aliases and lists problem

Discussion in 'Plugin Development' started by Smerfa, Jul 28, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Smerfa

    Hi!

    There is any way to create list-allias

    like this code:
    Code:
    a1: &a1
    - lol1
    - lol2
    a2: &a2
    - lol3
    - lol4
    foo:
    - *a1
    - *a2
    I want get:
    Code:
    foo:
    - lol1
    - lol2
    - lol3
    - lol4
    but YAML don't work that way so I get:
    Code:
    foo:
    - - lol1
      - lol2
    - - lol3
      - lol4
    Any way to create alias only for part of list?

    anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page