diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-03 20:57:36 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-03 20:57:36 -0500 |
commit | a5f4e1ed470b96c1f97f3827fe07d530c53f0e5c (patch) | |
tree | c4ab7430b9c2f54e9ab3ac10f62f0321af6578de /bin/page | |
parent | 5449dca686d7bdbd5f09acd4e9fd8647535acde9 (diff) |
I hate URL handling.
Diffstat (limited to 'bin/page')
-rwxr-xr-x | bin/page | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |