Closed siddhartha-gadgil closed 6 years ago
courses.yaml
import $ivy.`net.jcazevedo::moultingyaml:0.4.0` import net.jcazevedo.moultingyaml._ import net.jcazevedo.moultingyaml.DefaultYamlProtocol._ import ammonite.ops._ val txt = read(pwd / "_data" / "courses.yaml").replace("\t", " ") val yamlAst = txt.parseYaml val data = yamlAst.convertTo[Map[String, Map[String, List[Map[String, String]]]]]
prettyPrint
done
courses.yaml
file as well as the separate course files automatically.prettyPrint