Sha256: 885e44fc0687e43f64e5ccea0a5c60972d4030f5aef401bfac883348f4b50bfa

Contents?: true

Size: 314 Bytes

Versions: 26

Compression:

Stored size: 314 Bytes

Contents

#!/usr/bin/env ruby


template = "
<p>
  <input id='%s' type='checkbox' />
  <label for='%s'>
    %s
  </label>
</p>
"

counter = 0

STDIN.each_line do |line|
  counter += 1
  id = "item_#{counter}"
  bindings = []
  bindings.push(id)
  bindings.push(id)
  bindings.push(line.chomp)
  puts template % bindings
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.6 bin/ix-checklist
ix-cli-0.0.5 bin/ix-checklist
ix-cli-0.0.4 bin/ix-checklist
ix-cli-0.0.3 bin/ix-checklist
ix-cli-0.0.2 bin/ix-checklist
ix-cli-0.0.1 bin/ix-checklist