You are not logged in.
Pages: 1
Hi Arnaud,
Let's say we have some interface-based services, what would be the best way to wrap them into several JavaScript classes which can be run in the web browsers? From your blog post I see you can generate clients for SmartMobileStuidio using the Mustache template engine, is it possible (or how hard) to do that also for JS?
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Yes it would be possible.
But we would need a little help here, perhaps starting from existing shared JavaScript library, as available in this forum.
To support all data types and possibilities of the client, it may be some huge amount of work.
Another option may be to use the free command line compiler of SMS, which generated optimized JavaScript.
Offline
Not sure the readibility of the js code generated yb SMS's compiler, but that seems interesting.
If I'd ever done any research/works into this field, I'll share it in the forum.
Last edited by edwinsn (2014-09-27 14:54:30)
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
I created a small Banking account test application and I use Smart command line compiler to generate JS code. Take a look at http://forums.smartmobilestudio.com/ind … -compiler/
I pretty sure you can use the mORMOt wrapper to generate smartmobilestudio classes and then use smsc to generate pure javascript code.
Offline
Thanks for the info warleyalex.
I did a look at SmartMobileStudio.pas.mustache, looks like it can also generate SMS code for interface-based services, right? Anybody can confirm?
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Pages: 1