diff options
Diffstat (limited to 'bin/page')
-rwxr-xr-x | bin/page | 10 |
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() |