I personally use WTemplate for the overall page layout and insert widgets
all over the place.

That way of working might suit other people too:

template text goes in the messages section:
https://github.com/matiu2/witty-plus/blob/master/exampleApp/messages/MainWindow.xml
gets loaded in the app:
https://github.com/matiu2/witty-plus/blob/master/wittyPlus/App.cpp#L51
gets filled by MainWindow:
https://github.com/matiu2/witty-plus/blob/master/wittyPlus/MainWindow.cpp#L35

That way of doing things works really well for me .. I prefer that to
writing c++ code to design a web page.

In my way of thinking C++ is for the functionality, HTML and CSS is for the
design and look and feel, and JS is for the speed.

On Wed, Nov 16, 2011 at 4:17 PM, Juha Simola <juha.sim...@vincit.fi> wrote:

> On 16.11.2011 6:43, PARVINDER RAJPUT wrote:
> >> And what the benefit when comparing
> >> Wt::WText(Wt::h1, "Parvinder");
> > we need to made the another library for h1 to h6. When we put 1 it
> > take automatically h1 tag and when we put 2 it take automatically h2
> > tag and so on. It is beneficial to those, who don't know about html.
> > :p
> >> with
> >> Wt::WText("<h1>Parvinder</h1>");
> >> What if you want to render<h1><b><i>Parvidner</h1></b></i>  ?
> > If we want to character bold and italic, It also has own library.
> > According to me why we used html in witty. Because witty says why we
> > learn Ajax, javascript and other language, We can do all the things in
> > c++ without learning ajax and javascript language.
> >
> >
> Could we have WHeader -class for implementing different header tags?
>
> How about using basic text / font modifications using WText::bold(String
> text) WText::italic(String text) ?
>
> On the other hand, we should use CSS for creating styles anyway as it is
> a good web-programming practice.
>
> - Juha Simola
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to