m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/util.rb b/lib/util.rb
new file mode 100644
index 0000000..f5321a0
--- /dev/null
+++ b/lib/util.rb
@@ -0,0 +1,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
+ "https://git.m-chrzan.xyz/#{repo}/about"
+end