Now that tokamak have been extracted from restfulie, it may be easier
to support it at the java implementation.
The idea is to have a marshall which will eval the ruby file as it
marshall/unmarshall the object.
My question is how would it be decided to use the tokamak marshall
instead of json/xml marshall?
Thanks.
It makes sense... we have two options here:
a) use a template engine such as jsp/freemarker/velocity/tokamak
b) use a programming approach such as a media type builder
I prefer the second approach, such as:
rep = new Representation("items");
for(Item i : items) {
rep.startChild("item");
rep.value("");
rep.link("...");
rep.endChild();
}
And then building (a) on top of (b). What do you think?
Regards
Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br