diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-31 22:48:59 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-31 22:48:59 -0700 |
commit | b864379651d4bfe3d05f98350b720794ffa2806a (patch) | |
tree | c4bc81a8371694d661b10118b4932480aaa37d0b /bin/index | |
parent | 7445ea9d56071cfca247689e22c6fded65c3f968 (diff) |
more
Diffstat (limited to 'bin/index')
-rwxr-xr-x | bin/index | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,13 +2,15 @@ # -*- coding: utf-8 -*- load 'util.rb' -template = "index.#{ARGV.shift}.erb" +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() |