misen

Up / ChangeLog / misen-0.11.1.tar.gz / misen-0.11.1-all.tar.gz

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:

Requirements

Getting Started

Let's run Hello World sample.

$ ./env sample/hello.sh
$ ./env sample/hello.rb

Then run one of LaTeX version.

$ ./env sample/hello-latex.rb

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. (quoting HTML special characters)

$ ./env sample/bookmark.rb

Sample of Advanced Features

Acquisitive Expansion

Misen::AcqExpandPrinter (misen/expand-acq) provides acquisitive expansion feature. When given dictionary does not have model data for node's identifier, it tries to take one from outer dictionary. sample/acq-expand.rb is example.

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-sgml.rb and lib/misen/style-tex.rb. Those are examples of implementing new style class.

Copyright and License Notice

This program is free software distributed under BSD-style license term described in file COPYING.

Copyright 2003-, Shirai,Kaoru <shirai@korinkan.co.jp>