Inspired by Literate CoffeeScript.
$ cat hello.rb.md
Here's a simple program
puts "Hello, world"
$ ruby litrb.rb < hello.rb.md
Hello, world
Inspired by Literate CoffeeScript.
$ cat hello.rb.md
Here's a simple program
puts "Hello, world"
$ ruby litrb.rb < hello.rb.md
Hello, world
Here's a simple program
puts "Hello, world"
eval ARGF.readlines.select { |l| l[/^([ ]{4}|\t)/] }.join |
@rmosolgo Hi! Gist doesn't seem to do notifications, but I've updated the script to handle tabs. Basically I've dropped the map completely (because ruby doesn't care about whitespace).
Had a look at your projects, love the use of litrb with sinatra! 👍