summaryrefslogtreecommitdiff
path: root/bin/page
blob: ee62a958640f43d733b27775706160fb21067f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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
erb.run()