Hi Koen,
Any news about this nice feature ?
Can you provide a full working example?
Best regards,
Houssem
<https://sourceforge.net/mailarchive/message.php?msg_name=205a79980807040704
v338cc626t8b3cac2be6557c45%40mail.gmail.com> Re: [Wt-interest] is there any
templating mechanism?
From: Koen Deforche <[EMAIL PROTECTED]> - 2008-07-04 14:04
Hey Misi,
> I wonder if somebody thought or already implemented some html template
> mechanism (the blahblah with web designer defines general visual outlook
of
> a homepage/web application, and then the contents business logic is
> manipulated by the application etc.)
> and now the essence..
>
> <wt:edit slot2="wattaslott" slotxyz="wattaslot"/>
>
> <wt:hangman slot2="wattaslott" slotxyz="wattaslot"/>
>
> <wt:moneymakingcontroll slot="aoeu"/>
> this could be transformed into some c++ class/code before compilation, or
> (less performant) loaded at runtime.
>
> Any ideas?
I haven't heard of anyone trying to build something like this with Wt,
but, it is obviously feasible.
Perhaps an alternative and more attractive approach, which relies on
JavaScript presence however, is the currently experimental feature in
Wt (that is not officially documented) to use a Wt application in
"WidgetSet" mode. In that case, the application only manages a set of
widgets in a web page, instead of assuming the entire web page. The
link from web page to application is by loading the Wt application as
a JavaScript library:
<html>
<head>
...
</head>
<body>
...
<div id="w1">
...
<div id="w2">
...
<!-- load widgets from a Wt application: -->
<script src=" <http://wt-server/hello.wtjs?widget1=w1&widget2=w2>
http://wt-server/hello.wtjs?widget1=w1&widget2=w2"></script>
</body>
</html>
(This is taken from an actual test case for this feature in Wt)
Would that be an approach you could consider?
Regards,
koen
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest