[% typetitle = factory.title(type) %] [% title = thing.title || typetitle %] [% INCLUDE furniture/head.html title=thing.title %]

[% IF id == 'new' %]create[% ELSE %]edit[% END %] [% title %]

title of [% typetitle %]

description of [% typetitle %]

[% INCLUDE "editing/${type}.html" %]

This doesn't work with SQLite at the moment: bind_params seem to unbind and updates fail.

[% INCLUDE furniture/status.html %] [% INCLUDE furniture/foot.html %]