2
0
mirror of https://git.zx2c4.com/cgit synced 2025-08-31 14:25:15 +00:00

Add support for an 'embedded' option in cgitrc

When activated, cgit will neither generate http headers nor any 'framing'
html elements (like <html> and <body>). Also, all page content is now
wrapped in a <div id='cgit'> element to make it easier to select the
correct cgit classes when embedded/themed.

Suggested-by: Matt Sealey <matt@genesi-usa.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2009-01-22 23:33:56 +01:00
parent 8cc0287123
commit 0cbb50841a
3 changed files with 13 additions and 0 deletions

1
cgit.h
View File

@@ -171,6 +171,7 @@ struct cgit_config {
int summary_branches;
int summary_log;
int summary_tags;
int embedded;
};
struct cgit_page {