Thanks for the confirmation, Nico.
It seems like I only need this
module aspect for my immediate interests re Titanium, so I'll try and find a tactical work around. Have you considered whether there would be much work incorporating the CommonJS module spec? I might be missing something, but at first sight it looks reasonably straightforward to have some annotations in the Smalltalk that allow the Javascript to be generated with a CommonJS public interface definition. Perhaps when I'm a bit more familiar with Amber I could be bold enough to have a go myself;)
Btw, I'm really enjoying using Amber - thanks.
Regards,
Andrew
On 12 April 2012 15:39, Nicolas Petton
<[hidden email]> wrote:
Sure, it can be done, but currently Amber doesn't use it at all.
Cheers,
Nico
On Apr 12, 2012, at 4:02 PM, cpa4ajm wrote:
Hi All,
I went to an interesting talk on Node.js last night, and there were
references to the use of the CommonJS standards (http://
www.commonjs.org/) for modules etc.
CommonJS is also the standard approach to modules that Titanium
Appcelerator requires
Is there a way for Amber to produce CommonJS compliant Javascript
(require, exports etc)?
Thanks,
Andrew