From 626aebd32b2fa899cfb67f3b569c7460aee9c9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 4 Jan 2012 09:42:22 +0100 Subject: examples: use inherited_var instead of Zorglub::Helpers::Css --- examples/layout/css.haml | 2 +- examples/sample.ru | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/layout/css.haml b/examples/layout/css.haml index c9e35db..fbe0a47 100644 --- a/examples/layout/css.haml +++ b/examples/layout/css.haml @@ -1,5 +1,5 @@ %h1=@title %p="xx css layout xx" -%p="Css #{css.inspect}" +%p="Css #{inherited_var(:css).inspect}" %p=@content %p="xx -- xx" diff --git a/examples/sample.ru b/examples/sample.ru index 6784d3d..32639b3 100644 --- a/examples/sample.ru +++ b/examples/sample.ru @@ -64,14 +64,12 @@ end # class Node2 < Zorglub::Node # - include Zorglub::Helpers::Css - # map APP, '/url2' layout 'css' # class level engine engine 'tmp-engine' # class level css - css 'class_level.css' + inherited_var :css, 'class_level.css' # def index *args "Node2:indexSTART#{html}next
END" @@ -79,7 +77,7 @@ class Node2 < Zorglub::Node # def meth0 *args # instance level css - css 'instance_level.css' + inherited_var :css, 'instance_level.css' "Node2:meth0START#{html}next
END" end # -- cgit v1.1-2-g2b99