= misen

misen is the text template library like Amrita.

misen generates text document from a template and a model data. (Said
'template expansion') The difference to Amrita is:

* Not only HTML/XML, you can use it with any type of text.
* You can customize rules of parsing and formatting by implementing
  'style'.
* Simpler architecture and faster.

== Requirements

* Ruby 1.6.x

== How to install packages

  # make install

== Getting Started

Let's run "Hello world" sample.

  $ ./env sample/hello.sh

Then run one of LaTeX version.

  $ ./env sample/hello-latex.sh

More complex one. sample/conditional.rb is example of showing/hiding
paticular blocks by condition.

  $ ./env sample/conditional.rb

Another complex one. sample/bookmark.rb is example of extended inline
and customized text formatting.

  $ ./env sample/bookmark.rb

== How to write a new style

You may have to write a new style if you'd like to use misen for other
languages/text formats. Your have to implement subclass inherited from
Misen::Style, and give its instance to misen on expansion.

See lib/misen/style-*.rb. Those are examples of implementing new style
class.

== Contact

Post bug reports or suggestions to:
  Shirai,Kaoru <shirai@korinkan.co.jp>

