summaryrefslogtreecommitdiff
path: root/bin/page
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 20:57:36 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 20:57:36 -0500
commita5f4e1ed470b96c1f97f3827fe07d530c53f0e5c (patch)
treec4ab7430b9c2f54e9ab3ac10f62f0321af6578de /bin/page
parent5449dca686d7bdbd5f09acd4e9fd8647535acde9 (diff)
I hate URL handling.
Diffstat (limited to 'bin/page')
-rwxr-xr-xbin/page2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/page b/bin/page
index ca8b5bd..1b631cf 100755
--- a/bin/page
+++ b/bin/page
@@ -1,9 +1,11 @@
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
load 'util.rb'
+require 'uri'
template = "bin/page.#{ARGV[0]}.erb"
@page = Page.new(ARGV[1])
+@url = URI::parse('https://www.andrewdm.me') + @page.absoutpath
erb = ERB.new(File.read(template));
erb.filename = template