Happy !

MasashiUmezawa / Mustaside

Project infos

License MIT
Tags seaside, mustache
Creation date 2015-05-21
Website

Monticello registration

About Mustaside

Seaside meets Mustache

Mustaside enables you to combine Mustache-template-based rendering and traditional Seaside-component-based rendering.

html div class: 'must1'; with: [
html mustache:
 '{{time}}{{#subSection}}{{/subSection}}{{#address}}some address{{/address}}' values: {
    'time'->[Time now].
    'subSection'->[self renderSubOn: html].
    'address'->true.
}
].

Prereqisites

Is it useful?

You can embed template-based renderings in normal seaside rendering methods. Moreover, you can also embed normal rendering block in Mustache (See the [self renderSubOn: html] part in the above example). It is actually powerful.

Especially when you already have a bunch of wireframe HTMLs from a designer, you can save lots of time. With Mustaside, you can avoid translating such HTMLs to rendering message sends.