summaryrefslogtreecommitdiffstats
path: root/example/sample.ru
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-16 14:35:03 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-16 14:35:03 +0100
commitc3a3d77f9c6995fcc1f1c33ad9935aaa3ec39987 (patch)
tree715d0decee7482f37ffb481fbd8e90104187252f /example/sample.ru
parentee9d2f4af14baa97b99084c836e68abfafb6da44 (diff)
downloadzorglub-c3a3d77f9c6995fcc1f1c33ad9935aaa3ec39987.zip
zorglub-c3a3d77f9c6995fcc1f1c33ad9935aaa3ec39987.tar.gz
update example/sample.ru
Diffstat (limited to 'example/sample.ru')
-rw-r--r--example/sample.ru12
1 files changed, 6 insertions, 6 deletions
diff --git a/example/sample.ru b/example/sample.ru
index 0838b4e..c7b22b2 100644
--- a/example/sample.ru
+++ b/example/sample.ru
@@ -42,7 +42,7 @@ class Node1 < Zorglub::Node
@title='meth0'
@links = LINKS
# method level engine
- engine 'tmp-engine'
+ engine! 'tmp-engine'
# there's a view so the below will be lost !
"<b>should never be seeen</b>"
end
@@ -51,9 +51,9 @@ class Node1 < Zorglub::Node
@title='meth1'
@links = LINKS
# method level engine (layout/other.haml)
- layout 'other'
+ layout! 'other'
# specific method view (view/url1/meth0.haml)
- view File.join( 'url1','meth0')
+ view! File.join( 'url1','meth0')
# there's a view so the below will be lost !
"<b>should never be seeen</b>"
end
@@ -71,9 +71,9 @@ end
class Node2 < Zorglub::Node
#
map APP, '/url2'
- layout 'css'
+ layout! 'css'
# class level engine
- engine 'tmp-engine'
+ engine! 'tmp-engine'
# class level css
inherited_var :css, 'class_level.css'
#
@@ -96,7 +96,7 @@ end
class Node3 < Zorglub::Node
#
map APP, '/url3'
- layout ''
+ no_layout!
#
def index *args
@title = "Session tests"