summaryrefslogtreecommitdiff
path: root/bin/index
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 17:43:33 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-31 17:43:33 -0700
commitc52557f0a969e539138b0fdd4d7dd25f8795b509 (patch)
tree128bcfab061bc5f7c703dbbfed9ec6c209e71f7e /bin/index
parentdd2b6e83987786dbd53113fa984630119334925d (diff)
wip
Diffstat (limited to 'bin/index')
-rwxr-xr-xbin/index14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/index b/bin/index
new file mode 100755
index 0000000..44cdc35
--- /dev/null
+++ b/bin/index
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+load 'util.rb'
+
+template = "index.#{ARGV.shift}.erb"
+
+@pages = []
+for filename in ARGV do
+ @pages.push(Page.new(filename))
+end
+
+erb = ERB.new(File.read(template));
+erb.filename = template
+erb.run()