It occurred to me that fossil can be seen as a frame work where you can serve your own pages. That it has already a permission system and a database is a big plus. So i made a hello world page. See the instructions below.
If you do this it is obviously not fossil anymore! Its a nice way to build a small application with a database and built in scm and wiki. with zero administration on windows and linux --instructions I assume your in fossil directory and al the pages you make are in custom/pages with extension _c that's Underscore followed by the letter c mkdir -p custom/pages --------------file custom/pages/hello._c #include "config.h" #include "hello.h" /* ** WEBPAGE: hello */ void page_hello(void){ style_header("Hello World"); @ <h1>Hello World</h1> style_footer(); } -------eof hello._c ---------------file custom/custom.mk cdir := custom cpage:= $(cdir)/pages cbase:=$(basename $(notdir $(wildcard $(cpage)/*._c))) TRANS_SRC += $(addsuffix .c,$(cbase)) TRANS_H :=$(join $(addsuffix .c:,$(cbase)),$(addsuffix .h,$(cbase))) OBJ += $(addsuffix .o,$(cbase)) %.c : $(cpage)/%._c ./translate $< > $*.c %.o : %.c %.h $(SRCDIR)/config.erve $(XTCC) -o $*.o -c $*.c ----eof custom/custom.mk edit src/main.mk line 271 ( ./makeheaders add_.c:add.h allrepo_.c:allrepo.h ) and add at eof line $(TRANS_H) line 229 (all: $(APPNAME) and add above the line include custom/custom.mk make and start fossil as a server and goto http:/localhost:8080/hello I advice you to not use the name hello._c but to use a prefix e.g. cust_hello._c to not clash with fossil names. The same is true for the c function instead of page_hello use cust_hello. and also the WEBPAGE: use custom/hello so your url becomes http://localhost:8080/custom/hello -- Rene de Zwart _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users