Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Command-Line #15

Closed
mnot opened this issue Jun 26, 2013 · 3 comments
Closed

Command-Line #15

mnot opened this issue Jun 26, 2013 · 3 comments

Comments

@mnot
Copy link

mnot commented Jun 26, 2013

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.

@mislav
Copy link
Owner

mislav commented Jun 26, 2013

Way ahead of you ;)

@mislav mislav closed this as completed Jun 26, 2013
@mnot
Copy link
Author

mnot commented Jun 27, 2013

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:in require': 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:inrequire'
from rfc.rb:4:in `

'

both activesupport and memoizable are installed... searching around, I think this might be because of how they're imported?

@mislav
Copy link
Owner

mislav commented Jun 27, 2013

bundle exec ruby rfc.rb < ~/Projects/http2-spec/draft-ietf-httpbis-http2.xml > ~/index.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants