I'm not clear on how to integrate any of the multitude of third-party JavaScript libraries into Amber. Can someone point the way? Thanks.
-- Hopefully, it's simple and straightforward... ;-) You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Hello Richard
Work in progress which shows how to integrate processing.js into Amber v 13 is HeSe's repo https://github.com/HeSe/amber-processingJs where Sebastian H. got it working on Amber v013 yesterday. My fork https://github.com/hhzl/amber-processingJs demonstrates that in the master branch there should be no 'bower_component' and 'node_modules' directory (node_modules should be removed completely). On-line in the gh-pages branch http://hhzl.github.io/amber-processingJs I think in the end it is straightforward but it may take some time to get to this conclusion.... More documentation and a tutorial is needed. In this case it needed amber init bower install processing --save npm install bower install Manual creation of a processing.amd.json https://github.com/HeSe/amber-processingJs/blob/master/processing.amd.json file. grunt devel amber serve Which library do you want to add to Amber? Please ask on the ML until there is better documentation. --Hannes On 12/11/14, Richard Eng <[hidden email]> wrote: > I'm not clear on how to integrate any of the multitude of third-party > JavaScript libraries into Amber. Can someone point the way? Thanks. > > Hopefully, it's simple and straightforward... ;-) > > -- > You received this message because you are subscribed to the Google Groups > "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [hidden email]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by horrido
As always, it depends. One can use Javascript directly in Amber methods if surrounded by <>. Check some collections code for samples. Phil > You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Hannes Hirzel
I don't have any particular library in mind that I want to add to Amber. But given that Amber compiles to JS, I imagine a lot of Amber developers would want to take advantage of the multitude of JS libraries that is available in web development. Making this easy for them should be a most important goal.
-- I like Phil's suggestion. It sounds really easy. On Thursday, 11 December 2014 10:52:11 UTC-5, Hannes wrote: Hello Richard You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Yes Richard, Amber has near transparent access to JavaScript objects already and if not enough you can use a method with actual JavaScript as Phil suggested Take a look here for more: What’s great about the proxy is that in the best cases you don’t actually need to do any integration and just bower install and start using it as any other js app As another example, in flow we’re using require with its text plugin for the TemplateController and RivetJS to provide the BindingController of the two-way data binding feature
-- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Thanks! This is very nice.
-- On Friday, 12 December 2014 13:19:01 UTC-5, Sebastian Sastre wrote:
You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |