summaryrefslogtreecommitdiff
path: root/bin/index
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 22:48:59 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 22:48:59 -0700
commitb864379651d4bfe3d05f98350b720794ffa2806a (patch)
treec4bc81a8371694d661b10118b4932480aaa37d0b /bin/index
parent7445ea9d56071cfca247689e22c6fded65c3f968 (diff)
more
Diffstat (limited to 'bin/index')
-rwxr-xr-xbin/index4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/index b/bin/index
index 44cdc35..4f41c5d 100755
--- a/bin/index
+++ b/bin/index
@@ -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()