What does the pragma <magritte-container> mean?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

What does the pragma <magritte-container> mean?

FDominicus
Sorry I've seached the net but I still do not know what
this pragma is for.

Can anyone shed some light on it?

A related question:
in the MagritteMagicExample (which seems to be the only Example
available for Magritt3 one can find:
talkJson: talkTitle
        <get>
        <produces: 'application/json'>
        <path: '/talk?title={talkTitle}'>
       
        | talk |
        talk := self talkFromTitle: talkTitle.
        self requestContext respond: [ :response |
                response
                        contentType: WAMimeType applicationJson;
                        nextPutAll:  talk asJson ]

So it seems this should produce come Json format. Does that work for
anyone?

Regards
Friedrich
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: What does the pragma <magritte-container> mean?

Nick
Hi Friedrich

in the MagritteMagicExample (which seems to be the only Example
available for Magritt3 one can find:
talkJson: talkTitle
       <get>
       <produces: 'application/json'>
       <path: '/talk?title={talkTitle}'>

       | talk |
       talk := self talkFromTitle: talkTitle.
       self requestContext respond: [ :response |
               response
                       contentType: WAMimeType applicationJson;
                       nextPutAll:  talk asJson ]

So it seems this should produce come Json format. Does that work for
anyone?

If you load Magritte Magic using the Metacello configuration it will also load Magritte-Json and Magritte-XMLBindings found in http://source.lukas-renggli.ch/magritte3addons

They will Magritte described objects to serialise or materialise in Json or XML format.

Another example of Magritte 3 is in the Magritte examples in: http://twitterbootstrap.seasidehosting.st/

HTH

Nick

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki