title: Reuse a block of code in YAML
body: <p>I want to <a href="http://nodeca.github.com/js-yaml/#yaml=RGVmYXVsdHM6ICZkZWZhdWx0cwogIENvbXBhbnk6IEZvbwogIEl0ZW06IDEyMwoKQ29tcHV0ZXI6ICpkZWZhdWx0cwogIFByaWNlOiAzMDAw" rel="noreferrer">reuse a hash in YAML</a>:</p>
  
  <pre><code>Defaults: &amp;defaults
    Company: Foo
    Item: 123
  
  Computer: *defaults
    Price: 3000
  </code></pre>
  
  <p>However, this generates an error.</p>
  
  <p>Is the only way to anchor each field value separately <a href="http://nodeca.github.com/js-yaml/#yaml=RGVmYXVsdHM6CiAgQ29tcGFueTogJmNvbXBhbnkgRm9vCiAgSXRlbTogJml0ZW0gMTIzCgpDb21wdXRlcjoKICBDb21wYW55OiAqY29tcGFueQogIEl0ZW06ICppdGVtCiAgUHJpY2U6IDMwMDA=" rel="noreferrer">like this</a>?</p>
  
  <pre><code>Defaults:
    Company: &amp;company Foo
    Item: &amp;item 123
  
  Computer:
    Company: *company
    Item: *item
    Price: 3000
  </code></pre>