I have a two line script that works nicely in ruby. I moved it to haml and getting the error
NameError at /
uninitialized constant Tilt::CompileSite::Nokogiri
the haml code:
%td
- @doc = Nokogiri::XML(File.open(file))
= @doc.xpath("//testsuite").each_with_index {|node,index| "#{index+1}. #{node.attributes["name"].value}<BR>" }
any idea how I can make it work?
using below on Win XP SP3
- ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
- nokogiri (1.4.3.1 x86-mingw32)
- sinatra (1.0)
- thin (1.2.7 x86-mswin32)