summaryrefslogtreecommitdiffstats
path: root/examples/sample.ru
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-09-11 19:20:31 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-09-11 19:20:31 +0200
commitb06ae981c92040fe06c0317f0d12dc3f02044d21 (patch)
treef1f541d55977be1f1e20e6e7bb10810a2863cf67 /examples/sample.ru
parentcfe72087d3179c2e80f923f9061d9450714a1547 (diff)
downloadzorglub-b06ae981c92040fe06c0317f0d12dc3f02044d21.zip
zorglub-b06ae981c92040fe06c0317f0d12dc3f02044d21.tar.gz
add Node#partial
Diffstat (limited to 'examples/sample.ru')
-rw-r--r--examples/sample.ru6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/sample.ru b/examples/sample.ru
index 00d1b7a..67937ac 100644
--- a/examples/sample.ru
+++ b/examples/sample.ru
@@ -70,9 +70,13 @@ class Node2 < Zorglub::Node
def meth0 *args
# instance level css
css 'instance_level.css'
- "<title>Node2:meth0</title><b>START</b>#{html}<a href=#{Node0.r}>back</a><br/><b>END</b>"
+ "<title>Node2:meth0</title><b>START</b>#{html}<a href=#{Node2.r(:meth1,1,2)}>next</a><br/><b>END</b>"
end
#
+ def meth1 *args
+ more = Node2.partial :meth0, *args
+ "<title>Node2:meth1</title><b>partial</b><br/>#{more}<br/><b>done</b><br/><a href=#{Node0.r}>back</a>"
+ end
end
#
class Node3 < Zorglub::Node