aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-22 14:04:13 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-22 14:04:13 -0600
commit2988da14bed5f628cf4cd90eca0eec3c11f0c061 (patch)
tree1f8b9f6e18b659f778715829c8259e8c2868cda7 /src/main.rs
parent5c13375f554103c5a9cc78f902020744d35c24f2 (diff)
downloadgityeet-2988da14bed5f628cf4cd90eca0eec3c11f0c061.tar.gz
gityeet-2988da14bed5f628cf4cd90eca0eec3c11f0c061.zip
add syntax highlighting to files
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index f4e26d9..d85a1d3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -115,6 +115,7 @@ async fn view_tree_path(state: &Arc<Mutex<State>>, repo_rel_path: &str, tree_rel
Ok(template.into())
} else if let Some(selected_blob) = selected_object.as_blob() {
let template = templates::RepoFile {
+ repo_path: repo_rel_path,
title: repo_rel_path,
rel_path: &tree_rel_path,
blob: selected_blob.clone(),