> From: Richard Hipp <[email protected]>
> I like hasfeature the best.

(moved to the user list)

Just checked in:

[stephan@host:~/cvs/fossil/fossil/src]$ cat foo.th1
<th1>
if {[hasfeature json]} {
  html "json"
}
if {[hasfeature tcl]} {
  html "tcl"
}
if {[hasfeature ssl]} {
  html "ssl"
}
</th1>

tested under various build configurations:

[stephan@host:~/cvs/fossil/fossil/src]$ f test-th-render foo.th1
jsontclssl
[stephan@host:~/cvs/fossil/fossil/src]$ f test-th-render foo.th1
jsonssl
[stephan@host:~/cvs/fossil/fossil/src]$ f test-th-render foo.th1
json
[stephan@host:~/cvs/fossil/fossil/src]$ f test-th-render foo.th1
ssl
[stephan@host:~/cvs/fossil/fossil/src]$ f test-th-render foo.th1
jsonssl

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to