On Wed, Nov 16, 2011 at 2:43 PM, PARVINDER RAJPUT <m...@parvinder.co.in>wrote:

> tag and so on. It is beneficial to those, who don't know about html.
>

I think if you're ready to invest the humongous learning curve into
learning c++ .. you'll be able to handle a few html tags. There's even a
one page cheat sheet: http://www.killersites.com/HTML_CODES/

Also witty is open source .. build your library Parvinder if you think
you'll use it. You could build a bunch of widgets eg.

struct H1: public Wt::WTemplate {}
  H1(const Wt::WString& text, Wt::WObject* parent=0) : WTemplate(parent) {
setTemplate("<h1>${text}</h1>"); setText("text"); }
  void setText(const Wt::WString& text) { bindString("text", text); }
  Wt::WString getText() const { return resolve<Wt::WString>("text"); }
};

Done :) (Prolly won't compile though).

And just make a tonne of those classes, and you have your library that you
want so you can go:

new H1("I am awesome", body);

etc..

:)
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to