Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 407 Bytes

stanza.md

File metadata and controls

32 lines (26 loc) · 407 Bytes

Examples for the stanza filter

Original file

[first]
  line1 = value1
[second]
  line2 = vaule2

Output file

[first]
  line2 = addme
  line1 = new1
[second]
  line3 = add3
  line2 = value2

Filter

filter_lines '/example/stanza' do
 filters([
   { stanza: ['first', { line1: 'new1', line2: 'addme'}] },
   { stanza: ['second', { line3: 'add3' }] },
 ])
end