On 6/1/02 6:12 AM, "Panu H�llfors" <[EMAIL PROTECTED]> wrote:
> I consider Velocity one of the best ways to produce dynamic > HTML content. However, I'm now in need of such a tool for C/C++. > > Do anyone of you know of a velocity-like tool/library for C++? > Any licence goes, but of course I'm most interested in open > source ones. I haven't found any myself. > > Supposing there's no implementations, how difficult a work > would you consider porting Velocity to C++, in case I decide > to go that way? > On of the issues that you will find that makes this hard is the lack of introspection in C++. We make the most of this feature in Velocity so you can access any public method on a public class or interface that is placed in the context. Without that feature in the language, you might have to resort to an approach that requires some sort of inheritance. Not a showstopper, but will add more burden on the programmer using such a system. I wonder if you could either make a little rendering server written in Java that your C++ systems could use, or if you can embed a JVM in your program, and invoke Velocity that way. I've been out of touch with the C++ world for a little while now, so I can't offer much specific help here. geir -- Geir Magnusson Jr. Research & Development, Adeptra Inc. [EMAIL PROTECTED] +1-203-247-1713 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
