summaryrefslogtreecommitdiff
path: root/bin/index
diff options
context:
space:
mode:
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()