From 5d14ef1baf615197e6ad5fc9aee5e72ba8b9fbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 5 Jan 2012 09:56:36 +0100 Subject: example: use zorglub/engines/haml --- example/sample.ru | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example/sample.ru b/example/sample.ru index 3c1af4e..0838b4e 100644 --- a/example/sample.ru +++ b/example/sample.ru @@ -5,18 +5,17 @@ $LOAD_PATH << File.join(File.dirname( File.absolute_path(__FILE__)), '..', 'lib' USE_RACK_SESSION=false # require 'zorglub' +require 'zorglub/engines/haml' if USE_RACK_SESSION require 'zorglub/rack_session' else require 'zorglub/session' end # -require 'haml' HAML_PROC = Proc.new { |path,obj| Haml::Engine.new( File.open(path,'r').read ).render(obj) } -Zorglub::Config.register_engine 'haml', 'haml', HAML_PROC Zorglub::Config.register_engine 'tmp-engine', 'haml', HAML_PROC # -Zorglub::Config.engine = 'haml' +Zorglub::Config.engine = :haml Zorglub::Config.session_on = true Zorglub::Config.root = File.dirname( File.absolute_path(__FILE__) ) # -- cgit v1.1-2-g2b99