Command-Line
mnot opened this issue · comments
It'd be great to be able to feed a command the XML and get the pretty HTML on STDOUT; I have a feeling it'd be incorporated into a lot of toolchains if you did.
Aha!
I get this when running:
cat ~/Projects/http2-spec/draft-ietf-httpbis-http2.xml | ruby rfc.rb > ~/index.html
'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire': cannot load such file -- active_support/memoizable (LoadError) from /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require'
from rfc.rb:4:in `
both activesupport and memoizable are installed... searching around, I think this might be because of how they're imported?
bundle exec ruby rfc.rb < ~/Projects/http2-spec/draft-ietf-httpbis-http2.xml > ~/index.html