summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/layout/css.haml2
-rw-r--r--example/sample.ru4
2 files changed, 3 insertions, 3 deletions
diff --git a/example/layout/css.haml b/example/layout/css.haml
index fbe0a47..a48c120 100644
--- a/example/layout/css.haml
+++ b/example/layout/css.haml
@@ -1,5 +1,5 @@
%h1=@title
%p="xx <b>css</b> layout xx"
-%p="Css #{inherited_var(:css).inspect}"
+%p="Css #{cli_val(:css).inspect}"
%p=@content
%p="xx -- xx"
diff --git a/example/sample.ru b/example/sample.ru
index 9dc4d13..c7fd639 100644
--- a/example/sample.ru
+++ b/example/sample.ru
@@ -76,7 +76,7 @@ class Node2 < Zorglub::Node
# class level engine
engine! 'tmp-engine'
# class level css
- inherited_var :css, 'class_level.css'
+ cli_val :css, 'class_level.css'
#
def index *args
"<title>Node2:index</title><b>START</b>#{html}<a href=#{Node2.r(:meth0)}>next</a><br/><b>END</b>"
@@ -84,7 +84,7 @@ class Node2 < Zorglub::Node
#
def meth0 *args
# instance level css
- inherited_var :css, 'instance_level.css'
+ cli_val :css, 'instance_level.css'
"<title>Node2:meth0</title><b>START</b>#{html}<a href=#{Node2.r(:meth1,1,2)}>next</a><br/><b>END</b>"
end
#