Closed joulli closed 7 months ago
例: yaml = YAML.load(./data.yaml) md.file = ./${yaml.title} md.title = yaml.title md.body = 自由記述 repeat[(“*”) ${body.foreword.title} /n ${body.foreword.body} ]
repeat[(“1.”) ${body.volume.”詞書(現代語訳)”} /n ${body.volume.author} /n ${body.volume.歌} ]
ERBを使えばよい。綺麗ではないが
HTMLに直接出力すればよいらしい
例: yaml = YAML.load(./data.yaml) md.file = ./${yaml.title} md.title = yaml.title md.body = 自由記述 repeat[(“*”) ${body.foreword.title} /n ${body.foreword.body} ]
repeat[(“1.”) ${body.volume.”詞書(現代語訳)”} /n ${body.volume.author} /n ${body.volume.歌} ]