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:
1
cgit.h
1
cgit.h
@@ -171,6 +171,7 @@ struct cgit_config {
|
||||
int summary_branches;
|
||||
int summary_log;
|
||||
int summary_tags;
|
||||
int embedded;
|
||||
};
|
||||
|
||||
struct cgit_page {
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user