From: Radek Hnilica Date: 2003-02-07T23:09:52+09:00 Subject: Borges future I'm playing with Borges 0.1.0. I'm just slowly going into. While learning and writting some simple examples, I found that some features are missing. For instance while trying to implement login example I found that it is not possible use input filed of type password (without doing changes to class Renderer) Before trying make some patches I need to know the right way, and possible look into Seaside2. Should the password input field be implemented as a separate method of Renderer ( Renderer.password_input ) or will be better to rewrite methods another way in that class? Will there be a cvs for borges in near future somewhere? The actual login example file 'login.rb' is: #!/usr/bin/env ruby require 'borges' require 'borges/Page' include Borges class Login < Page def initialize @username = nil @password = nil end def render_on(r) r.heading 'Login' r.form do r.print "Name:" r.text_input(''){|n| @username = n; puts "*> n= #{n}"} r.print "
Password:" r.text_input(''){|n| @password = n; puts "*> n= #{n}"} r.print "
" r.submit({'value'=>'Login'}) {login} end end def login() puts "*> Login as #{@username} with #{@password}" end end Borges::register_application("login", Login) if $0 == __FILE__ then require 'borges/Webrick' Borges::WebrickConnection.start({:Port=>7000}) end #EOF -- Radek Hnilica ======================================= No matter how far down the wrong road you've gone, turn back. Turkish proverb