diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-06 10:07:38 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-06 10:07:38 +0100 |
commit | 8dd007b3978d855ee3984b3c3f59b3eb4281b8fa (patch) | |
tree | 6c7137fb9db8aa5b64935c7865139bc5554cf428 /spec/spec_helper.rb | |
parent | df5e1a8e31104b6cb92689c3d82b0c47b77230f1 (diff) | |
download | zorglub-8dd007b3978d855ee3984b3c3f59b3eb4281b8fa.zip zorglub-8dd007b3978d855ee3984b3c3f59b3eb4281b8fa.tar.gz |
fix haml engine, add spec
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2e402a5..a531ce9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -12,6 +12,7 @@ require 'yaml' # require 'zorglub' require 'zorglub/engines/file' +require 'zorglub/engines/haml' # HASH_PROC = Proc.new { |path,obj| {:path=>path,:layout=>obj.layout,:view=>obj.view,:args=>obj.args,:map=>obj.map}.to_yaml } STATIC_PROC = Proc.new { |path,obj| ["VAL #{obj.value}",'text/static'] } @@ -79,6 +80,13 @@ class Node0 < Zorglub::Node engine :file ext 'txt' end + def engines name + no_layout + case name + when 'haml' + engine :haml + end + end end # class Node1 < Zorglub::Node |