今天看到这个,TermNote。
ruby 来写和演示类似 ppt 的文档。
require 'termnote'
include TermNote
show.add chapter title: "Hello, World"
show.add code language: "Ruby", source: <<-SOURCE
puts "Hello, world!"
SOURCE
show.start
Or via a .yaml file:
---
type: chapter
title: Hello, World
subtitle: By Kurtis
---
type: code
source: |
puts "Hello, world!"