Skip to content

jrobertson/xml-to-haml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Introducing the XML-to-HAML gem

require 'xml-to-haml'

fruit=<<FRUIT
<fruit>
  <apple country="france" month="august">tasty<gdelicious/></apple>
  <pear/>
</fruit>
FRUIT

haml = XMLtoHAML.new(fruit).to_s
puts haml

output:

%fruit

  %apple{ :country => 'france', :month => 'august'} tasty

    %gdelicious

  %pear

About

xml-to-haml converts an XML string to HAML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages