... You want to use: hdf_get_value( cgi->hdf, NAME, defaultVal ); hdf_set_value( cgi->hdf, NAME, VAL ); To walk the tree, use: HDF *node; node = hdf_get_child(...
69
rbarooah
May 9, 2003 6:52 pm
Hi, I'm trying to use clearsilver to build a cgi program in straight C in the following basic pattern: 1. cgi_init( &cgi, 0 ) - to read and parse the input...
68
Brandon Long
blong42
Apr 15, 2003 11:49 pm
Fine, fine, the next version will have the name() function in it. Brandon ... -- "A front-line tech support specialist who has 'had enough' will buy a bow and...
67
Alan Braverman
alanb42
Apr 15, 2003 1:51 am
I usually include the ID or counter number as a data item whenever exporting some data to ClearSilver/HDF, and rely on nested each statements when I cannot use...
66
David Jeske
jeskeca
Apr 15, 2003 1:36 am
... I've long wanted us to have "name(foo)" as a function, and then you could do: <?cs each: st1 = some_structure ?> <?cs var:st1.blahblah ?> <?cs...
65
ctrimble
Apr 15, 2003 1:28 am
Hi guys, I would like to find out if there's a way I can get access to the name of the item we're currently iterating on for use in another structure's key: ...
64
Brandon Long
blong42
Apr 5, 2003 1:18 am
Release Notes for Clearsilver 0.8.1 4/4/2003 ... There are a couple major changes to Clearsilver with this release, though for the most...
63
Brandon Long
blong42
Apr 1, 2003 3:22 am
Yeap, this is a bug. This is a bit tough to fix at the moment, I'll have to ponder parse_expr2 a bit. Its getting the order of evaluation out of order, so...
62
Chuck Simmons
cesium62
Mar 31, 2003 11:46 pm
I was using an expression of the form: <?cs if:?Query.Sync[field] ?> As near as I can tell, this always evaluated to 'false39;. When I removed the '?', I got...
61
Dan Janowski
djjanowski
Mar 11, 2003 1:24 pm
... I have just taken a quick look at the CGI stuff. It seems fine, especially since you have already provided for IO wrapping. I am using this in a FastCGI...
60
David Jeske
jeskeca
Mar 11, 2003 7:20 am
... Looks great to me! Is it common to omit the function ()s in Ruby? I wrote a bit of Ruby code a while back and it definetly has ()s. -- David Jeske (N9LCA)...
59
David Jeske
jeskeca
Mar 11, 2003 7:15 am
... Thanks! That's our experience as well. There are some tradeoffs in not having HDF understand "lists" of things, but overall it seems to work well. I've...
58
Dan Janowski
djjanowski
Mar 11, 2003 4:21 am
This looks correct to me but I am interested in an authoritative opinion. I realize this is in Ruby, but it should be intelligible. Having said that, please...
57
Dan Janowski
djjanowski
Mar 11, 2003 4:15 am
This is why I like HDF instead of XML for this. You (plural) made a very good choice in putting singular values at the nodes. I think it is great and largely...
56
David Jeske
jeskeca
Mar 11, 2003 3:18 am
This is a pretty important typo correction: ... ^^^^^^^^^^ elements -- David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@......
55
David Jeske
jeskeca
Mar 11, 2003 3:16 am
... Yes, you are correct. ... I don't think a CST should be capable of using of Attrs. First, because CSTs never scan over all the attributes. Second, because...
54
David Jeske
jeskeca
Mar 11, 2003 3:02 am
... An attribute is like a "flag" for a node. Philosophically, when you define an attribute, that attribute should be valid for ANY node. For example, whenever...
53
Dan Janowski
djjanowski
Mar 11, 2003 2:41 am
This makes perfect sense and is what I would have expected. At first reading of your [Lang] example I was unsure how they helped, but I was thinking more along...
52
Dan Janowski
djjanowski
Mar 11, 2003 1:48 am
I have completed an initial port of Hdf to Ruby. It is missing the attr get/set. This is both because of my not understanding what they are and because of some...
51
Dan Janowski
djjanowski
Mar 11, 2003 1:47 am
I do not understand what attr is and how it is different from values. Can someone explain? Dan...
50
djjanowski
Mar 11, 2003 1:43 am
What is the difference between an attribute (attr) and a value for a node? What would an attr look like in a text hdf representation? How (and why) would it be...
49
David Jeske
jeskeca
Feb 5, 2003 1:33 am
Thanks for pointing this out. I think I fixed them all now, and you're right, there were quite a few mistakes. ... -- David Jeske (N9LCA) +...
48
major dennis bloodnok...
bloodnok
Feb 5, 2003 12:21 am
folks, the clearsilver docs have a minor flaw: the possessive form of "it" is misused. a standard error, thanks to the inane structure of the english language....
47
Dan Janowski
djjanowski
Jan 30, 2003 9:45 pm
On Thursday, Jan 30, 2003, at 16:13 America/New_York, Brandon Long ... CS has some notion of its own local variables or is it really a fake? Dan -- Dan...
46
Brandon Long
blong42
Jan 30, 2003 9:13 pm
... Its actually faked at the CS level, so its not actually a symlink at the HDF level. Brandon -- "You will pay for your sins. If you have already paid,...
45
Dan Janowski
djjanowski
Jan 29, 2003 7:34 pm
On Wednesday, Jan 29, 2003, at 13:45 America/New_York, Brandon Long ... Understood. I can work around and will be happy when this feature arrives. In an 'each'...
44
Brandon Long
blong42
Jan 29, 2003 6:45 pm
... There isn't a way to do this, currently. You can do: The egg is <?cs var:eggs[i]["color"] ?> and weighs <?cs var:eggs[i]["weight"] ?> Which obviously...
43
Dan Janowski
djjanowski
Jan 29, 2003 12:41 pm
Hi All. I'm new here but have been using cs for about 6 months now. My question: I have been trying to create a variable that can be addressed in the same way...
42
Brandon Long
blong42
Nov 27, 2002 5:51 pm
Yeap, I wasn't calling cs_parse_string() with its own copy of the string, here's the patch: diff -u -u -r1.50 -r1.51 ... +++ csparse.c 27 Nov 2002 17:49:52...
41
Gaku Ueda
gakuueda
Nov 27, 2002 11:12 am
Hi Brandon, I found a problem while I'm using lvar. I could reproduce the problem using cstest. ClearSilver version is 0.7.2. data.hdf ... A = HELLO B =...