cg is A Ruby based HTML “contents generator”.

Required RubyGems

  • rack
  • rake
  • jeweler
  • tilt
  • erubis
  • rdiscount



  • GitHub



  1. First Step

  2. Convert



  3. All Rebuild

  4. All Rebuild and Packing

  5. Server


    Access to http://localhost:9292


    Access to http://host:8080

    Want to run cg server as a daemon? use nohup.



  1. Template customize

  2. After save hook for Vim

 autocmd BufWritePost *.mkd :silent !cg convert % > /dev/null
  1. After save hook for Emacs

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don’t break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright (c) 2010 Tomohiro, TAIRA.


The MIT License. See LICENSE for details.