summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-01-08 09:17:10 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-01-08 09:17:10 +0100
commitd59521f3bec769dfe35f1d822617998468f78d7d (patch)
treead0bd822bb883c1d48556cb3c9b8059f676b2a8b /example
parent8b5ac512744905424c191ea56124a0e7b9f1f787 (diff)
downloadzorglub-d59521f3bec769dfe35f1d822617998468f78d7d.zip
zorglub-d59521f3bec769dfe35f1d822617998468f78d7d.tar.gz
inherited_vars in cli_vals, fix and comment
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
#