[ANN] Kwartz 3.2.0 released - a designer-friendly template system

M

makoto kuwata

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top