README.md in dslh-0.1.6 vs README.md in dslh-0.1.7
- old
+ new
@@ -78,9 +78,53 @@
"A meta-markup language, used to create markup languages such as DocBook.",
:GlossSeeAlso=>["GML", "XML"]},
:GlossSee=>"markup"}}}}}
```
+### deval
+
+```ruby
+require 'dslh'
+
+h = {"glossary"=>
+ {"title"=>"example glossary",
+ "GlossDiv"=>
+ {"title"=>"S",
+ "GlossList"=>
+ {"GlossEntry"=>
+ {"ID"=>"SGML",
+ "SortAs"=>"SGML",
+ "GlossTerm"=>"Standard Generalized Markup Language",
+ "Acronym"=>"SGML",
+ "Abbrev"=>"ISO 8879:1986",
+ "GlossDef"=>
+ {"para"=>
+ "A meta-markup language, used to create markup languages such as DocBook.",
+ "GlossSeeAlso"=>["GML", "XML"]},
+ "GlossSee"=>"markup"}}}}}
+
+puts Dslh.deval(h) # => glossary do
+ # title "example glossary"
+ # GlossDiv do
+ # title "S"
+ # GlossList do
+ # GlossEntry do
+ # ID "SGML"
+ # SortAs "SGML"
+ # GlossTerm "Standard Generalized Markup Language"
+ # Acronym "SGML"
+ # Abbrev "ISO 8879:1986"
+ # GlossDef do
+ # para "A meta-markup language, used to create markup languages such as DocBook."
+ # GlossSeeAlso "GML", "XML"
+ # end
+ # GlossSee "markup"
+ # end
+ # end
+ # end
+ # end
+```
+
## Contributing
1. Fork it ( http://github.com/<my-github-username>/dslh/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)