summaryrefslogtreecommitdiff
path: root/index
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-08-27 19:12:36 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-08-27 19:12:36 -0400
commit75d4d72a1f5352d1c3520fbaf96911309fc7f96a (patch)
tree942dfa89658964e5954f159fa4d9b41c6b7bc423 /index
parentb373a3a6e1702e7514bb405122a2311d16d85fcd (diff)
index.atom, also: write-atomic
Diffstat (limited to 'index')
-rwxr-xr-xindex14
1 files changed, 14 insertions, 0 deletions
diff --git a/index b/index
new file mode 100755
index 0000000..44cdc35
--- /dev/null
+++ b/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()