trac customization

25 views
Skip to first unread message

cor...@googlemail.com

unread,
Feb 3, 2021, 2:48:05 PM2/3/21
to Trac Users
Hi
I'm using trac 1.2.3
I'm using tracd standalone

My config is as follow

My trac env
/srv/live/ap/trac/nfx 

I created 3 files files in the templates directory

site_header.html, site_footer.html, site_head.html

And a stylesheet in

htdocs

Prior to run tracd 

I export this variable:
export TRAC_ENV_INDEX_TEMPLATE=/srv/live/ap/trac/nfx/templates

tracd -p 8080 --basic-auth="*,/srv/live/ap/trac/.htpasswd,My own stuff" -e /srv/live/ap/trac

Unfornutally my style sheets get ignred
What am i missing ?

Best Regards
Jacques

site_head.html
style.css
site_footer.html
site_header.html

RjOllos

unread,
Feb 3, 2021, 3:39:57 PM2/3/21
to Trac Users
It looks like you are using the instructions for Trac 1.4 which uses Genshi as the template engine. Instead, see:

You don't need to set  TRAC_ENV_INDEX_TEMPLATE. You can just put site.html in $env/templates. Notice the line "<link rel="stylesheet" href="${href.chrome('site/style.css')}" />". It will cause $env/htdocs/style.css to be loaded.

Ryan
Reply all
Reply to author
Forward
0 new messages