m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lib/util.rb
blob: 48ac7e18043991c87b36d83f79686250abad5d70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require './lib/pather'

SourceDir = 'src'
BuildDir = 'public'

def src filename
  File.join SourceDir, filename
end

def build filename
  File.join BuildDir, filename
end

def path_to asset_id
  P.path_to asset_id
end

def git repo, path = 'about'
  "https://git.m-chrzan.xyz/#{repo}/#{path}"
end