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....
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...
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...
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...
... 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...
... 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...
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...
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...
... 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...
... 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)...
... 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...
I was using an expression of the form: <?cs if:?Query.Sync[field] ?> As near as I can tell, this always evaluated to 'false'. When I removed the '?', I got...
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...
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: ...
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...
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...
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...
... 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(...
Hi, I am using clearsilver at run-time as a way of processing cgi requests and generating template based output as part of a web based user-interface. I'd like...
... That's pretty interesting. Why do you need the macros replaced at compile-time? Is performance a problem? Structural? Why not just put this "compiled"...
... Interesting. I've thought about this a bit myself, recently, since the parser currently works by doing a strchr for < and then just checking if the next...
... template, ... HDF, ... Yes - I have considered doing this and it is of course possible. The constraints that have led me to decide to do it at compile...
I am trying to build ClearSilver on Windows, against Python2.1 and using the Microsoft compiler. The compiler is complaining about the macros with variable...