[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fossil-users
Subject:    [fossil-users] Fwd: [fossil-dev] extending th1's hascap to include ENABLE_xxx flags?
From:       Stephan Beal <sgbeal () googlemail ! com>
Date:       2012-07-13 18:43:22
Message-ID: CAKd4nAh_9t7DD4DGsX3bgzR_14KAw=GybJBK9A=9aWQTJrLB1w () mail ! gmail ! com
[Download RAW message or body]

> From: Richard Hipp <drh@sqlite.org>
> 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

[Attachment #3 (text/html)]

<div class="gmail_quote">&gt; From: <span class="gmail_sendername">Richard \
Hipp</span> <span dir="ltr">&lt;<a \
href="mailto:drh@sqlite.org">drh@sqlite.org</a>&gt;</span><br><div \
class="gmail_quote"><div>&gt; I like hasfeature the best.<br> <br></div><div><div \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">(moved \
to the user list)</div><div \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
 <br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Just \
checked in: </div><div \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
 <br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>[stephan@host:~/cvs/fossil/fossil/src]$ \
cat foo.th1</div><div>&lt;th1&gt;</div><div>if {[hasfeature json]} {</div> <div>  \
html &quot;json&quot;</div><div>}</div><div>if {[hasfeature tcl]} {</div><div>  html \
&quot;tcl&quot;</div><div>}</div><div>if {[hasfeature ssl]} {</div><div>  html \
&quot;ssl&quot;</div><div>}</div><div>&lt;/th1&gt;</div> <div><br></div><div>tested \
under various build configurations:</div><div><br></div><div>[stephan@host:~/cvs/fossil/fossil/src]$ \
f test-th-render foo.th1</div><div>jsontclssl</div><div>[stephan@host:~/cvs/fossil/fossil/src]$ \
f test-th-render foo.th1</div> \
<div>jsonssl</div><div>[stephan@host:~/cvs/fossil/fossil/src]$ f test-th-render \
foo.th1</div><div>json</div><div>[stephan@host:~/cvs/fossil/fossil/src]$ f \
test-th-render foo.th1</div><div>ssl</div><div>[stephan@host:~/cvs/fossil/fossil/src]$ \
f test-th-render foo.th1</div> \
<div>jsonssl</div><div><br></div></div></div></div></div>-- <br>----- stephan \
beal<br><a href="http://wanderinghorse.net/home/stephan/" \
target="_blank">http://wanderinghorse.net/home/stephan/</a><div><a \
href="http://gplus.to/sgbeal" target="_blank">http://gplus.to/sgbeal</a></div> <br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic