Index

joshstock.in / 8147f6b

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
9712 Dec 2020 21:058147f6bUpdate lua-gitwebJosh Stockin111G

Blob @ joshstock.in / lua-gitweb / init.lua

text/plain963 bytesdownload raw
1-- init.lua
2-- Initializes scripts for OpenResty workers
3
4-- Copyright (c) 2020 Joshua 'joshuas3' Stockin
5-- <https://joshstock.in>
6
7local git = require "git/git_commands"
8
9local pages_blob = require "pages/blob"
10local pages_commit = require "pages/commit"
11local pages_download = require "pages/download"
12local pages_index = require "pages/index"
13local pages_log = require "pages/log"
14local pages_row = require "pages/raw"
15local pages_refs = require "pages/refs"
16local pages_tree = require "pages/tree"
17
18local builder = require "utils/builder"
19local nav = require "utils/nav"
20local parse_uri = require "utils/parse_uri"
21local tabulate = require "utils/tabulate"
22local utils = require "utils/utils"
23
24-- Load YAML configuration
25_lyaml = require "lyaml"
26
27local _yaml_config_file = io.open("/home/josh/repos/joshstock.in/lua-gitweb/repos.yaml")
28yaml_config = _lyaml.load(_yaml_config_file:read("*a"))
29_yaml_config_file:close()
30