You are currently looking at an older section of the wincent.dev website.
Please check the new version of the site at https://wincent.dev/ for updated content.

wincent Walrus: object-oriented templating

Walrus

Walrus is a free Object-Oriented templating engine written in Ruby and licensed under the GPL. Plain text templates are compiled down to Ruby code; final output is produced by executing ("filling") the compiled templates. A walrus commandline tool is included to make compiling and filling templates easy. Walrus includes a sophisticated parser generator that can make packrat parsers capable of recognizing Parsing Expression Grammars (including grammars that include left-recursion), and outputting arbitrarily complex Abstract Syntax Trees.

Walrus was inspired by the Cheetah template engine written in Python.

For more information about Walrus see these articles published during its development:

Donations

Walrus is free software released under the GPL license.

Downloading from RubyForge

See the RubyForge file listing.

To install using RubyGems:

sudo gem install walrus

Obtaining via Git

git clone git://git.wincent.dev/Walrus.git

Building from source

Before using Walrus you must build the C extensions upon which it depends; you can do this from inside the root of the source tree by executing the following:

rake make

You can run the specs by doing the following:

rake spec