summaryrefslogtreecommitdiff
path: root/bin/page
blob: 1b631cf324d9f661042fc12ba250c17108616143 (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()