Sorry, I can't help you a lot,  I'm learning pyjamas too. But my goal is use
pyjamas with pylons too (well, now pyramid[?]).
Escribe texto o la dirección de un sitio web o traduce un
documento<http://translate.google.es/?tr=f&hl=es>
.
Cancelar <http://translate.google.es/?tr=t&hl=es>
Maybe you can inspire in these thread:
http://groups.google.com/group/pyjamas-dev/browse_thread/thread/f17a03b962d4a0e0/8c6bb8be2f61f4ed?lnk=gst&q=how+to+insert+a+PyJamas+page+into+a+web2py+page+#8c6bb8be2f61f4ed

Regards

2010/11/8 Felipe De Siqueira <[email protected]>

> Thank you for the response Gines,
>
> I am using that tutorial to try and setup a JSON-RPC service under pylons,
> that's not really my problem.
>
> Pyjamas is a compiler for Python, it compiles Python code into
> javascript/html/css.  When it does this is compiles the result into an
> "/output" folder which includes amongst other things an HTML file for the
> page I generated and a "bootstrap.js" which the HTML file imports that runs
> my compiled javascript code.
>
> I am using paster serve to serve the application.
>
> Normally, a /controller/action would be hit, and would eventually return a
> response from what I've seen either as an AJAX response which would later be
> handled by the client.  Or it would serve a page rendered from a mako view.
>
> What I want is to be able to serve "pyjamasapp.html" out of pyjamas with no
> mako and with the ability for that file to import it's javascript file
> properly.
>
> something just occurred to me... :-)
>
> Would I be able to use the render('pyjamasapp.html") to give the client the
> proper response and would that mako view be able to import it's javascript
> file properly from the server?  Whether it be in a "/static" folder or not?
>
>
> Once again thank you for your help.  I know I am not the best at describing
> my problem so I especially thank you guys for your patience.
>
> Regards,
> Luis
>
> On Mon, Nov 8, 2010 at 11:46 AM, Ginés Martínez <[email protected]> wrote:
>
>> Perhaps this help you:
>>
>> http://code.google.com/p/pyjamas/wiki/PyjamasWithPylonsJSONRPC
>>
>> Cheers.
>>
>> 2010/11/8 Felipe De Siqueira <[email protected]>
>>
>>> Hello ladies and gentlemen,
>>>
>>> I'm sort of a web development newbie due to my distaste for all that is
>>> javascript and html.  I recently came across pyjamas and fell in love with
>>> the idea of using my favorite programming language on the front and back
>>> end.  Super cool.
>>>
>>> So here's my question in relation to pylons.
>>>
>>> How do I serve a pyjamas page from pylons?  The pylons book goes over how
>>> to respond from a "view" with mako but I want to serve the pyjamas output
>>> directly and have the page by able to import it's javascript libraries
>>> (which will be in the same directory as it's .html page produced by
>>> pyjamas).
>>>
>>> Any suggestions on this setup?  The goal of the setup would be to serve
>>> the "main pages" as seperate pyjamas outputs and then using AJAX/JSONRPC
>>> calls within each page.
>>>
>>> Any ideas on how I should set this up on the pylons side of things?
>>>
>>> Any information for this newbie would help including redirection to the
>>> proper sources If I'm not asking in the correct place.
>>>
>>> Thank you.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "pylons-discuss" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<pylons-discuss%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/pylons-discuss?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-discuss" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<pylons-discuss%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-discuss?hl=en.
>>
>
>
>
> --
>
> Luis De Siqueira
> [email protected]
> Mobile - (862) 234-9452
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

<<338.gif>>

Reply via email to