public
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Dependency checking for html2haml.


git-svn-id: svn://hamptoncatlin.com/haml/trunk@473 
7063305b-7217-0410-af8c-cdc13e5119b9
nex3 (author)
Sun Apr 01 01:02:25 -0700 2007
commit  2a433596c068de79b92fd3a731cb4380a91b93f2
tree    8ca5e268f6353b7ac43c368f864eb3300208c7ac
parent  eff216e240295823db86975557296ba102240b1c
...
2
3
4
5
6
 
 
 
 
 
 
 
 
 
7
8
9
...
2
3
4
 
 
5
6
7
8
9
10
11
12
13
14
15
16
0
@@ -2,8 +2,15 @@
0
 
0
 require File.dirname(__FILE__) + '/../lib/haml'
0
 require 'haml/engine'
0
-require 'rubygems'
0
-require 'hpricot'
0
+
0
+begin
0
+ require 'rubygems'
0
+ require 'hpricot'
0
+rescue LoadError => err
0
+ dep = err.message.scan(/^no such file to load -- (.*)/)[0]
0
+ puts "Required dependency #{dep} not found!"
0
+ exit 1
0
+end
0
 
0
 def tabulate(tabs)
0
   ' ' * tabs

Comments

    No one has commented yet.