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