Description of the Spindle web framework, which has a strong separation between view and controller (unlike many web frameworks), and utilises concepts such as widgets and form objects.
It also has a powerful full template language, instead of inventing a crippled and awkward second language.
Written in Tcl with the XOTcl OO extension.
3. Features
• Embedded web server
• MVC with full separation of each part of
framework
• Simple, but powerful
• No dumb invented template language
• Based on Tcl + XOTcl
4. Tcl — Language of Kings
• Script language, http://www.tcl.tk/
• Popular GUI: Tk
• Ultra-dynamic
• Extendable
• Embeddable
5. Everything is a
Command
set a 5
puts “Hello, world”
while {$a} {
puts “Hi”
incr a -1
}
6. Everything is a String
set a “pu”
set b “ts”
$a$b “Hello, world”
12. 2: Connecting sub-URLs
to methods
FooController
/foo/bar call 'bar'
bar
uses
FooView
/foo connected
getHTML
13. 3: Passing forms
FooNameForm
name
Creates
Gets passed as arg
FooController
/foo call 'enterName' bar
enterName
With form 'enterName'
uses
FooView
/foo connected
getHTML
14. 4: Widgets
is datasource for
FooController ListWidgetController
/foo connected' bar Attribute
enterName Attribute
gets info from
uses uses
FooView ListWidgetView
/foo connected
getHTML
calls 'getHTML'
getHTML