From: Steve H. <sh...@zi...> - 2002-07-16 18:36:33
|
----- Original Message ----- From: "why the lucky stiff" <yam...@wh...> > So, the code basically will end up just parsing and emitting in HTML/CHM/whatever... > > require 'yod' > doc = Yod.new( File.open( 'doc/yaml4r.yod' ) ) > puts doc.to_html > > The Yod#to_html method descends through the Page, Group, Code, Paragraph objects, calling their > to_html methods along the way. Doesn't work like that yet ;) but that's the plan. > Cool idea! A similar idea is to use YAML as a tool for slide shows. A crude first cut at it is in perforce, called SlideShowell. I read in the YAML, and I manually traverse the tree to create the objects, but I intend to make it more domain-driven in the future. It uses an already existing Python library for creating slide shows. We definitely need to standardize YOD! Good work! |