Sha256: 5c8fce4314efaa1d94faca21bc4d395262d9980d12acac7155fd8e89d4833d6a
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
<?xml version="1.0"?> <html> <?r # the code that populates the template comes here unless name = request["name"] name = "World" end # maintain a session variable session = request.session session[:counter] = 0 unless session[:counter] session[:counter] += 1 ?> <!-- the template comes here --> <h1>Hello #{name}</h1> <p> <form id="my_form" action="#{request.uri}"> <b>Enter your name:</b> <input type="text" name="name" /> <br /> <input type="submit" /> </form> </p> <p> Counter: #{session[:counter]} </p> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.1.2 | examples/tiny/root/index.sx |