kuwata-lab homepage

Materials

News

Softwares

The followings are released from kuwata-lab.com.

Kwartz

Fig: Kwartz divide template into two parts: presentation data and presentation logic.
figure of kwartz

Kwartz is a template system which realized the concept 'Independence of Presentation Logic'(IoPL).

Kwartz divide template into two parts: presentation data and presentation logic. Presentation data is HTML file and you don't have to 'mix' presentation logic into HTML file. In the result, HTML design is not breaked at all.

In addition, Kwartz has more features:

...more >>


Kwaff

Fig: Kwaff makes XML as easy as YAML to read and write for human.
figure of kwaff

Kwaff is a pretty formatter to generate XML document. It convert Kwaff format document into XML document, and convert XML into Kwaff to the contrary.

Kwaff format is a friendly format for human to read and write than XML. Kwaff format enables you to generate XML as easy as YAML.

The following is an example to convert Kwaff <=> XML.

Convert Kwaff format into XML:
$ kwaff example.kwaff > example.xml
Convert XML into Kwaff format:
$ kwaff -r example.xml > example.kwaff

...more


Kwalify

Fig: Kwalify validates YAML or JSON document.
figure of kwalify

Kwalify is a small but useful schema validator for YAML and JSON. The followings are available with Kwalify.

YAML and JSON are simple and nice format for structured data and easier for human to read and write than XML. But they havn't have schema validator such as RelaxNG or DTD. Kwalify gets over this situation.

Kwalify is designed to be easy to extend in script and to embed into other application.

Kwalify is implemented in Ruby and is now ported into Java.

...more >>


Kook & Rook

Fig: Cookbook format is YAML and it allows to contain PHP/Ruby code.
figure of kook

Kook is a simple Software Construction Management (SCM) tool like Make, Ant, SCons, or Rake. Kook is implemented in pure PHP and Rook is implemented in pure Ruby.

Kook and Rook are inspired Cook which is developed by Peter Miller. They regard software project as cooking. Terms used in Kook and Rook are cooking terms.

Cookbook is just 'Makefile' or 'build.xml' in Kook. Cookbook is easy to read and understand because it is described in YAML format which is much easier to read and write than XML.

Kook and Rook are also very powerful because they can allow you to embed PHP or Ruby code in Cookbook directly. It means that you can get the advantage of 'declarative' by YAML format and advantage of 'procedural' by PHP or Ruby code. This approach is very strong and powerful.

...more >>


Erubis & Erubis-J

Fig: Erubis is the fastest eRuby implementation.
figure of erubis

Erubis is a fast, secure, and extensible implementation of eRuby (embedded Ruby). It has the following features.

Erubis supports new embedded pattern '<?rb statement ?>' and '@{expression}@', too. This is more suitable for XML and HTML than ordinaly pattern '<% statement %>' and '<%= expression %>', because the latter breaks HTML design and the former doesn't.

Erubis is impremented pure Ruby and is ported into Java, named Erubis-J. Erubis-J is an embedded JavaScript converter which uses Rhino as JavaScript engine.

...more >>