File: render.rb

package info (click to toggle)
jblas 1.2.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,676 kB
  • sloc: java: 11,885; ansic: 5,024; ruby: 2,391; xml: 382; makefile: 198; sh: 6
file content (10 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
require 'rubygems'
require 'redcloth'

ARGV.each do |f|
  newf = f.gsub /.textile$/, '.html'
  out = open(newf, 'w') do |o|
    txt = open(f, 'r').read
    o.write RedCloth.new(txt).to_html
  end
end