Having worked a few days with ClearSilver, I'm pretty well convinced this is the way to go. I've got a largish CGI application written entirely in 'C' that...
... convinced ... Great! ... If the executable size is important, you can use the clearsilver shared library instead of the static library. You should be able...
I was just writing some clearsilver for a design which involves conditional elements separated by commas. The tricky part is, with all the clearsilver...
... Back at eGroups, we reached the same point, we probably had around 60 CGI programs, but they came in at a larger size. I put in some work to make them all...
... ClearSilver currently works by using a simple callback interface for output, which is called for each bit of data that needs to be output. In order to eat...
... In the last release there is some functionality which did this but is confused. The next release makes this very straightforward: <?cs var:subcount(node)...
I'm trying to pass a string variable in the query string which ends with an encoded plus sign (%2B). I think clearsilver is stripping the end (I'm using...
Using static.cgi: http://www.fiction.net/~blong/test.html?var=A%2B It works fine. It also works in CSPage.py Is cspage.py the mod_python stuff? Its possible...
Sorry about that, Brandon. It was my problem. I'm modifying the query string in my mod_python handler and needed to re-encode the url before calling the CSPage...
Upon further inspection, I think there were two crashes. One was I had <?cs var:item,name ?> (comma instead of period) and two was in Template.Header2 I had an...
Hmm, I'm not able to duplicate the problem, I think because comma is now a token in my version, and it looks like the core is occurring when cs is trying to...
I have made a patch that gives you gettext support inside of templates. It is now very easy to have i18n support in your templates. Use <?cs var:_("Text to...
Gerald Dachs
gda@...
Mar 15, 2004 11:03 pm
211
... That's neat. It's cool that you were able to do this using the function interface. ... Btw, did you look at trans.py in the examples directory? It is an ...
... No, I didn't look into it because I don't use python, I use pure c only. If I have text to translate inside the c file, it gets translated too. I like it...
Gerald Dachs
gda@...
Mar 16, 2004 9:06 am
213
... trans.py at one point generated gettext compatible files for exactly this reason. Probably not any more, its more of an internal script that should really...
... The original CS/HDF code was written in pure C, and the original ONElist CGIs were written in pure C. Not a single bit of language was ever defined in the...
Gerald - Even if you prefer gettext ultimately, I'd really like to see you try trans.py. If you have trouble with getting it setup, email me and I'll...
... trans.py. If you have trouble with getting it setup, email me and I'll fix/improve/document as necessary. Here are some reasons that trans.py is cool: ...
Gerald Dachs
gda@...
Mar 17, 2004 9:47 pm
218
... Yes, it probably doesn't need to use mysql, my original thinking was I was going to have a web tool for actually doing the translation. ... Actually, what...
Brandon answered most of your questions, but I figured I would clarify two things. ... development ... trans is designed to help maintain your translation...
Hello, there, I just wrote a tool that checks .cs and .hdf files for html_escape or js_escape problems. Feel free to use it or give me comments or suggestions....
That's pretty cool. I was actually pondering at one point having clearsilver enforce some sort of escaping mechanism, but I thought doing that at run time...
John - You'll be happy to know that I just checked in a fix which will stop urls paramaters with empty keys from crashing clearsilver's _query_parse(). I...
I had already checked in a fix, it probably just ignored those parameters though. Brandon ... -- "To be happy with a woman, you must love her a lot and not try...
... This is interesting. I've often wondered if there isn't a better way to handle this. In odb.py, I automatically html_escape strings when I put them into...
Brandon, We were going to ask you for help, but we got similar conclusions. However, Ryan had an idea of doing fault injection to quickly check outcome of a...