scsh-users
[Top] [All Lists]

About separation of layout and logic in sunet surflets

To: scsh-users@scsh.net
Subject: About separation of layout and logic in sunet surflets
From: Immanuel Normann <i.normann@iu-bremen.de>
Date: Thu, 15 Dec 2005 16:22:56 +0100 (MET)
List-id: <scsh-users.list-id.scsh.net>
Hello,

I'am just starting to implement a little web application with the sunet 
server. The documentation and the code examples of surflets are quite 
helpful, but there are also some limititations:
My general objection is that there is no comprehensible separation 
between logic and layout in the surflets. I mean something like the so 
called "Modell View Control' design pattern. May be it is just a matter 
of insufficient documentation in this respect.
To give an example:
Just by accident (i.e. by scanning some example code) I figured out how 
to set the width of a text input field with the function 
make-text-field. But for instance I have no clue how to manipulate 
layout in the "surflet-form" function. I am not asking for special case 
problems, I am rather interested in the general concept concerning 
layout encoding inside the surflet functions.
Moreover I have problems with "get-bindings": Appearently I can't use it 
to retrieve some hardcoded key-value pairs. get-bindings seems to 
support only generated key-value pairs (e.g. generated by make-text-field).
Right now I see only these two alternatives:
1) Use surflet build in functions like surflet-form => unclear how to 
influence the layout
2) Hardcode html => how do I get bindings?

I certainly would appriciate more documentation in this respect.

Thanks,
Immanuel

<Prev in Thread] Current Thread [Next in Thread>