summaryrefslogtreecommitdiff
path: root/bin/page
blob: e2d4f38f6365fa1eca5a401a758f4c03b2cff832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'util'
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()