summaryrefslogtreecommitdiff
path: root/bin/page
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/page
parentdd2b6e83987786dbd53113fa984630119334925d (diff)
wip
Diffstat (limited to 'bin/page')
-rwxr-xr-xbin/page10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/page b/bin/page
new file mode 100755
index 0000000..ca8b5bd
--- /dev/null
+++ b/bin/page
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+load 'util.rb'
+
+template = "bin/page.#{ARGV[0]}.erb"
+@page = Page.new(ARGV[1])
+
+erb = ERB.new(File.read(template));
+erb.filename = template
+erb.run()