summaryrefslogtreecommitdiff
path: root/bin/index
blob: 4f41c5da9389aae778e0077690c72471bbcf4271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
load 'util.rb'

template = "bin/index.#{ARGV.shift}.erb"
@path = ARGV.shift

@pages = []
for filename in ARGV do
	@pages.push(Page.new(filename))
end


erb = ERB.new(File.read(template));
erb.filename = template
erb.run()