Kwartz 3.2.0 released - a designer-friendly template system

Hi,
I have released Kwartz 3.2.0.
http://www.kuwata-lab.com/kwartz/
(Notice that this is beta-release. Spec may change in the future.)

Kwartz is a designer-friendly template system.
You can separate presentation logics from HTML template, similar to
CSS.

Example:

ex.html:

<table>
  <tr id="mark:list1">
    <td id="mark:item">Foo</td>
  </tr>
</table>

ex.plogic:

#list1 {
  logic: {
    for x in @list
      _stag    ## start tag
      _cont    ## content
      _etag    ## end tag
    end
  }
}
#item1 {
  value: x;
}

Compile:

$ gem install kwartz
$ kwartz -l eruby -p ex.plogic ex.html > ex.rhtml
$ cat ex.rhtml
<table>
<%     for x in @list %>
  <tr>
    <td><%= x %></td>
  </tr>
<%     end %>
</table>

Enhancements from 3.1.2:

* Ruby 1.9 support
* Class selector
* Tag selector
* Multi selector
* Attribute variable
* New property 'before:' and 'after:'
* 'logic:' property is now available with '#DOCUMENT'
* Language-independent expression

See CHANGES for details of enhancements.
http://www.kuwata-lab.com/kwartz/kwartz3ruby-CHANGES

Thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs