views:

2104

answers:

7

Planning to write a website in C++. Would like to use a template system like Clearsilver, but maybe there's a better alternative?

A: 

Why on Earth would you write a website in C++? It makes as much sense as writing code for a microcontroller using PHP.

anon
Because I want to?
apphacker
Because I want to use the code that I have previously written for a microcontroller :-)Because I can !!!
Malkocoglu
What's wrong with programming micro controllers in PHP? :)
Luke
I don't see what feature C++ lacks to make it easy to write a webserver in.
Dimitri C.
I wrote a website in C++ in the past; it was very pleasurable as the tools for C++ (Visual Studio) are light years ahead of the ones for PHP. C# would have been a better choice if I had a windows hosting, which I didn't. C++ was the second best choice and I never regretted it.
Andreas Bonini
ATL Server-based websites - running closer to the compiler gives you much better control over server performance and memory management. I wrote a high-performance web application that way once, and it worked great until the business wanted way too frequent updates. Takes a lot more work to update a site in C++ than it does with "normal" web technologies.
Charles Boyung
+6  A: 

Wt (pronounced 'witty') is a C++ library and application server for developing and deploying web applications. It is not a 'framework', which enforces a way of programming, but a library.

yesraaj
That's sweet, I'm glad I asked then, even though it's a duplicate. :)
apphacker
A: 

Ah found my answer. Seems like this is a duplicate question! :o

http://stackoverflow.com/questions/355650/c-html-template-framework-templatizing-library-html-generator-library

apphacker
-1 Please put this in your question.
Dimitri C.
+1  A: 

You can have a look at cgicc which help handling posted data, but it's not actually for the html generation part. Otherwise I think Clearsilver is a very good template engine that has been used professionally

epatel
+5  A: 

To add to the previous question:

CTemplate

CTPP

You could also interface with ClearSilver (written in C) with C++.

alphadogg
A: 

Check out Grantlee: based on Django's template system, but using C++ and Qt.

Kristian
A: 

this is a repeat question

concerned
You sound concerned. Just trolling?
apphacker