From 5e75128a8bee885d83563d8c521172328d511d12 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Fri, 18 May 2007 23:56:10 +0200 Subject: Add html_include() This is a function used to include external htmlfiles in cgit- generated pages. Signed-off-by: Lars Hjemli --- cgit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index f3d783e..fc44a71 100644 --- a/cgit.h +++ b/cgit.h @@ -144,6 +144,7 @@ extern void html_hidden(char *name, char *value); extern void html_link_open(char *url, char *title, char *class); extern void html_link_close(void); extern void html_filemode(unsigned short mode); +extern int html_include(const char *filename); extern int cgit_read_config(const char *filename, configfn fn); extern int cgit_parse_query(char *txt, configfn fn); -- cgit v1.2.1 From de69ce020c4ccd7146d6ac72bbd8f417088e8c03 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 19 May 2007 00:00:25 +0200 Subject: Teach cgit howto include an external file on index page. The new parameter index-header can be used to name an external file which will be included verbatim at the top of the index page. Signed-off-by: Lars Hjemli --- cgit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index fc44a71..3ee11bb 100644 --- a/cgit.h +++ b/cgit.h @@ -75,6 +75,7 @@ extern struct repoinfo *cgit_repo; extern char *cgit_root_title; extern char *cgit_css; extern char *cgit_logo; +extern char *cgit_index_header; extern char *cgit_logo_link; extern char *cgit_module_link; extern char *cgit_virtual_root; -- cgit v1.2.1