Hi Tommi! > Tommi Mäkitalo <[email protected]> hat am 4. Oktober 2013 um 18:39 geschrieben: > Why not just use constants? > > In a include: > > namespace url > { > static const char SwitchToHandheldVersion[] = > "/SwitchToHandheldVersion"; > static const char RSSfeedView[] = "/rss.xml"; > ... > } > > Then in the ecpp: > > | <a href="<$ url::SwitchToHandheldVersion $>">| > > If you want to change the url, just change it in the header and > recompile. It is much less overhead and not need for a lookup table.
Yes, that is a very good idea. That is the better way. Thanks for you feedback. Gratings, Olaf -------------------|-------------------|-------------------|-------------------| ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
