Hi,

On the Teapot + Mustache integration, Hannes, you may want to see my early prototype:

http://smalltalkhub.com/#!/~Offray/Brea

At some point, it will contain distributed wiki, backed by Fossil, now that we're thinking in empower community driven wiki like documentation.

Offray

El 21 de agosto de 2017 10:52:47 GMT-05:00, "H. Hirzel" <hannes.hirzel@gmail.com> escribi��:
Hello

The TeaPot documentation [1] references Mustache [2] in the section

4.1. Response Transformers [3]

There is an example for a JSON transformation but none for Mustache.

Where do I find some information how to use Mustache together with Teapot?

Regards
Hannes




[1]
https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/Teapot/Teapot.html

[2] https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/Mustache/Mustache.html


[3] The responsibility of a response transformer is to convert the
output of the action block to HTML and to set the content-type of the
response. Some response transformers require external packages (e.g.,
NeoJSON, STON, Mustache).

[4] Adapted example

TLWebserver teapot GET: '/jsonlist' -> #(1 2 3 4); output: #json.


--
Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi brevedad.