public
Description: Malline is a full-featured pure Ruby template system designed to be a replacement for ERB views in Rails or any other framework. It also includes standalone bin/malline to compile Malline templates to XML in commandline. All Malline templates are pure Ruby.
Homepage: http://www.malline.org
Clone URL: git://github.com/isaac/malline.git
name age message
file .gitignore Loading commit data...
file COPYING
file COPYING.LESSER
file History.txt
file Manifest.txt Mon Sep 01 04:20:24 -0700 2008 updated manifest [isaac]
file README
file README.txt
file Rakefile
directory bin/ Sun Oct 14 04:30:27 -0700 2007 Little directory arrangement. git-svn-id: htt... [tonttu]
file github.rb
file init.rb
directory lib/
file malline.gemspec
directory scripts/ Fri Feb 15 12:00:08 -0800 2008 2008 git-svn-id: http://svn.malline.org/trunk... [tonttu]
directory test/
README.txt
= Malline 1.1.0-svn

* http://www.malline.org/

== DESCRIPTION:

Malline is a full-featured template system designed to be
a replacement for ERB views in Rails or any other framework.
It also includes standalone bin/malline to compile Malline
templates to XML in commandline. All Malline templates are
pure Ruby, see http://www.malline.org/ for more info.

See documentation on http://www.malline.org/

Copyright © 2007,2008 Riku Palomäki, riku@palomaki.fi
Malline is released under GNU Lesser General Public License.


Example Rails template file images.html.mn:

  xhtml do
    _render :partial => 'head'
    body do
      div.images! "There are some images:" do
        images.each do |im|
          a(:href => img_path(im)) { img :src => im.url }
          span.caption im.caption
        end
        _"No more images"
      end
      div.footer! { _render :partial => 'footer' }
    end
  end