With Glyph, you can manage your documents tidily in projects and generate deliverables in different formats such as HTML or PDF

Glyph comes with its very own macro system to perform a wide variety of advanced tasks:

  • enerate block-level HTML tags not commonly managed by lightweight markups, like head, body, div and table.
  • Create and validate internal and external links.
  • Include and validate images and figures.
  • Automatically determine header levels based on the document structure.
  • Automatically generate a Table of Contents based on the document structure.
  • Store common snippets of text in a single YAML file and use them anywhere in your document, as many times as you need.
  • Store configuration settings in a YAML file and use them anywhere in your document, as many times as you need.
  • Evaluate Ruby code within your document.
  • Include content only if certain conditions are satisfied.
  • Define macros, snippets and configuration settings directly within your document.
  • Highlight source code.
  • Call macros from other macros (including snippets), avoiding mutual calls.
  • Include text files within other text files.
  • Include the value of any configuration setting (like author, title) in the document.
  • Filter input explicitly or implicitly (based on file extensions).
  • Manage draft comments and todo items.
  • Provide a simple, less-verbose syntax to write XML

To install glyph put in your console:

gem install glyph

source: http://www.h3rald.com/glyph