diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-16 15:47:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-16 15:47:50 +0200 |
commit | 9afeb6e5a87e50eef1c87844e1c2923cc2680f73 (patch) | |
tree | ce0db3bf114d53d93a3904b23a636080aa2c98c0 /examples/sample.ru | |
parent | 70bc18d63c63c644dc7239c66f6606ddc4a9b8bc (diff) | |
download | zorglub-9afeb6e5a87e50eef1c87844e1c2923cc2680f73.zip zorglub-9afeb6e5a87e50eef1c87844e1c2923cc2680f73.tar.gz |
add Node#realize
Diffstat (limited to 'examples/sample.ru')
-rw-r--r-- | examples/sample.ru | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/examples/sample.ru b/examples/sample.ru index 48f59b0..b318f86 100644 --- a/examples/sample.ru +++ b/examples/sample.ru @@ -11,17 +11,11 @@ Zorglub::Config.root = File.dirname( File.absolute_path(__FILE__) ) class Node1 < Zorglub::Node # def index a1, *a2 - response.write "<title>Node1:index</title>" - response.write "<p>a1 : #{a1.inspect}</p>" - response.write "<p>a2 : #{a2.inspect}</p>" - response.write self.html - response.finish + "<title>Node1:index</title><p>a1 : #{a1.inspect}</p><p>a2 : #{a2.inspect}</p>#{html}" end # def alt *args - response.write "<title>Node1:alt</title>" - response.write html - response.finish + "<title>Node1:alt</title>#{html}" end # end @@ -37,18 +31,14 @@ class Node2 < Zorglub::Node layout 'my-layout' # def index *args - response.write "<title>Node2</title>" - response.write html - response.finish + "<title>Node2</title>#{html}" end # def alt *args engine 'temp-engine' layout 'temp-layout-name' view 'path-to-temp-view' - response.write "<title>Node2:alt</title>" - response.write html - response.finish + "<title>Node2:alt</title>#{html}" end # end |