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.27 bin/ix-checklist
ix-cli-0.0.26 bin/ix-checklist
ix-cli-0.0.25 bin/ix-checklist
ix-cli-0.0.24 bin/ix-checklist
ix-cli-0.0.23 bin/ix-checklist
ix-cli-0.0.22 bin/ix-checklist
ix-cli-0.0.21 bin/ix-checklist
ix-cli-0.0.20 bin/ix-checklist
ix-cli-0.0.19 bin/ix-checklist
ix-cli-0.0.18 bin/ix-checklist
ix-cli-0.0.17 bin/ix-checklist
ix-cli-0.0.16 bin/ix-checklist
ix-cli-0.0.15 bin/ix-checklist
ix-cli-0.0.14 bin/ix-checklist
ix-cli-0.0.13 bin/ix-checklist
ix-cli-0.0.12 bin/ix-checklist
ix-cli-0.0.11 bin/ix-checklist
ix-cli-0.0.10 bin/ix-checklist
ix-cli-0.0.9 bin/ix-checklist
ix-cli-0.0.7 bin/ix-checklist