Index

joshstock.in / 8d865bc

Source for serving and static templating/compiling of https://joshstock.in.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
7320 Jan 2020 21:499b4a3f1Begin gitpager rewriteJosh Stockin1110N

Blob @ joshstock.in / gitpager / src / templates.js

application/javascript278 bytesdownload raw
1const fs = require('fs');
2const pathFix = require('./pathFix');
3const config = require('./config');
4
5module.exports = function(template, keys) {
6 for (key in keys) {
7 value = keys[key];
8 template = template.replace(new RegExp("\\$" + key, "g"), value);
9 }
10 return template;
11}
12