Walrus 0.4 released

Version 0.4 of the Walrus gem has just been released. Walrus is an object-oriented templating system written in Ruby and heavily inspired by the Cheetah template engine (which is written in Python). It doesn’t set out to be a full clone of Cheetah, but it does implement a very large subset of its functionality, and it employs the same directive syntax wherever possible.

This release contains one minor bugfix and one major behavioral change; the default output extension for filled templates is no longer "html", so you will either need to explicitly pass in the extension (eg. walrus fill -e html ...) or rename your templates to include the desired extension:

  • if you formerly had index.tmpl as your source template, resulting in index.rb when compiled and index.html when filled
  • you’ll now have index.html.tmpl as your source template, and it will produce index.html.rb when compiled and index.html when filled

This new approach has a few benefits which are fully explained in the commit log message.

Changelog and source code

A full list of changes in this release can be viewed here. The source code can be explored via the project source code repository.

Installation

$ sudo gem install walrus

Donations

Walrus is free, open source software released under the BSD license. If you find it useful and would like to support further development you can make a donation via PayPal to win@wincent.com.

See also

For more information see the Walrus product pages.