GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
It demonstrates several things I think a user might want to do that are not covered in the current examples:
I've also written a blog post documenting the process; you may want to link to it or include it in your documentation: http://archlinux.me/dusty/2011/12/27/pyjaco-and-jquery/
Create a pyjaco example that utilizes jQuery.
Amazing! Thank you very much for this great work.
As for your blog post, it's great. It's just the kind of thing we need to get people to use pyjaco. In my own project, I made a widget library that wraps most of the jQuery code, so it doesn't look quite so mixed as in your example, but I recognize that it's a completely valid use case.
Regarding the readability of the generated code, this has not been a major priority, I admit. Your input as a newcomer to the project is greatly appreciated. Which parts do you find hard to read? If you have any ideas for improvements that aren't difficult to implement, I believe I can make them rather quickly.
Regarding the use of "mock" python builtins, it's strictly required to get the right semantics, but I believe you are well aware of this. For example, because we use foo for almost everything behind-the-scenes, you can override getattr, cmp or whatever you want, and basically get the semantics you would expect from python.
Merge pull request #4 from buchuki/documentation
* Path from buchuki: Create a pyjaco example that utilizes jQuery.
I appreciate the history, and I really like where the project is going. It's been a while since I've been on the ground floor of a project before it hit mainstream, but I see this one or something like it going platinum. Focusing on correctness first and then optimizations and readability is definitely the best way to go.
It would be nice if it were possible to create JSVar's globally at the beginning of a input string instead of having to decorate every function... maybe it is already and I've missed that.
If you use jabber or gtalk, add me, email@example.com I'd be happy to discuss further development. I really am working on adding a watch feature to pyjs.py, and there will likely be further contributions in the next two weeks.