You are not logged in.
Pages: 1
We currently focus on TMS Web Core integration, which seems a newer - and more supported - alternative.
I saw this in the documentation and if I'm not mistaken it's new, right?
Anything in the plans for the pas2js?
Offline
Thanks @ab.
By the - little - I saw of TMS Web Core I did not like the performance. but this is another subject ...
Pas2js (that is used by the TMS Web Core) seems quite promising.
Offline
I'm wandering if it would be possible to adapt the cross platform units (SynCrossPlatformSpecific, SynCrossPlatformREST, SynCrossPlatformCrypto) to be compatible also to pas2js. Ab do you have any hint / suggestion on what directive section to use as a basis, maybe the ISDWS? HASINLINE has to be included also?
Offline
I did not have time yet on WebCore/pas2js integration, sadly.
But I guess I could make it work with plain pas2js code, with no WebCore dependency.
It would for sure use some conditional, but specific since DWS has not the same syntax than pas2JS, e.g. for asm/javascript.
In mORMot2 cross-platform clients, I would like to have a mormot.cross.core.pas unit which may help having less $ifdef in the general code, as we do with regular code in mORMot 2.
Offline
My opinion is that Elevate Web Builder is way better than TMS WebCore from a Delphi/FPC developer perspective: EWB has a very nice layout and very nice designed controls (no HTML, no CSS - the RAD way, but you can customize every bit), instead of TMS style where the page is usually designed by a designer and the developer access the controls by ID.
Offline
EWB seems great for desktop-like web apps, but for mobile and tablet apps, using regular HTML/CSS makes more sense: you need a progressive app. For desktop apps, we have Delphi or Lazarus.
But perhaps I am wrong, since I don't know EWB well.
Have you some more input?
Offline
I may be mistaken, but I think I've seen something related to mormot + pas2js done by @warleyalex.
Offline
The EWB layout system is an absolute game-changer. Additionally, combined with component creation and interfaces, you have the ability to create truly responsive, modern web apps, that look any way you wish.
You can create components by combining small elements, all in Pascal, no HTML, please see this video:
https://www.youtube.com/watch?v=dZEQBqP8NME
Regarding mobile apps, qoute from forum: "I also have to do this a lot. In my experience, the EWB Layout functionality is easily good enough for me to actually create a single app that is responsive based on device resolution. You should explore this functionality if you have not done so already, along with the Autosize functionality. The only area where I have had to "tweak" things is the removal of scrollbars on mobile devices."
These days EWB3 will be launched with many more features.
There a trial version and if you say is ok, I can contribute with a licence. I will send a private email.
Last edited by emk (2020-11-06 09:47:46)
Offline
I went down the "pascal for web" hole years ago and the tooling is terrible. Learning modern HTML/CSS/JS is easy , these technologies are also extremely volatile. Now if someone came out with pascal tooling 8-10 years ago that would have made it easier to avoid the shortcomings of web development, awesome, but today it's pointless because the modern web is so simple that you no longer need all this 3rd party tools. One example is the layout system, you no longer have to deal with the flow layout, it's now obsolete and has been superseded by grid and flex layout which anyone can master in about 15 minutes.
I guess the value proposition of this "pascal for web" tools would be the ability to take a complex desktop application written in pascal and seamlessly convert it to the web. AFAIK nothing like this exists but correct me if I'm wrong.
Last edited by pvn0 (2020-11-06 13:16:05)
Offline
@pvn0, agreed, the scripting language has never been the issue for me to do web frontend, the lack of a RAD way of doing the UI is.
Nowadays I prefer htmx.org (successor of intercooler.js) to do the basic stuff and jquery does the rest.
Last edited by edwinsn (2020-11-06 15:55:26)
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
> I guess the value proposition of this "pascal for web" tools would be the ability to take a complex desktop application written
> in pascal and seamlessly convert it to the web.
How do you handle client side development, each page/action has a different raw html file? Also hod do you actually write html files, in notepad or there's some WSIWYG editor?
Last edited by igors233 (2020-11-16 23:39:12)
Offline
> I guess the value proposition of this "pascal for web" tools would be the ability to take a complex desktop application written
> in pascal and seamlessly convert it to the web.How do you handle client side development, each page/action has a different raw html file? Also hod do you actually write html files, in notepad or there's some WSIWYG editor?
I'm not sure what you mean, you don't need raw html files to do web development you just need a server that responds to requests with html standard compliant response.
If you're asking how I do the web portion of development myself, I use VS codium, which is a libre port of microsoft VS code, that way I get the code completion and extensions without the ms bs "telemetry" attached to it.
Offline
Thanks, so you create also html/mustache templates using VS codium? To clarify, I'm looking for a friendly web IDE development, like we can do forms in Delphi.
Offline
Yes, I write templates with VS Codium. It has some nice things like html formatter, tag auto completion, color selection dialogs, tag description, js function description etc... But you may need to install some extensions to enable at least some of the above. I wouldn't compare it to forms in Delphi, there's no drag and drop if that's what you meant, it's just a good editor with lots of extensions that save you time.
Offline
pvn0 wrote:you just need a server that responds to requests with html standard compliant response.
This is what mORMot MVC Web Server is very good at, using Mustache templates and Delphi code.
I like mustache indeed and your implementation is very good. I don't use the MVC Web Server, at the moment I use method based services which I find very flexible. Also FPC > Delphi
Offline
A pure html/javascript client reduces or even eliminates the need for an MVC server.
The mORMot server would be serving the API only.
Another option is to create a separate server, to serve HTML, which also consumes the API on mORMot server.
The Boilerplate HTTP Server based on mORMot is very interesting for this purpose.
https://synopse.info/forum/viewtopic.php?id=3365&p=1
Offline
Thanks, so you create also html/mustache templates using VS codium? To clarify, I'm looking for a friendly web IDE development, like we can do forms in Delphi.
I don't like visual editors. They usually create dirty HTML code.
In addition, they may not work in conjunction with widget frameworks.
But I believe there are extensions for vs code/vs codium that add WYSIWYG editor.
NOTE: When I created this topic, TMS was creating a WYSIWYG editor for TMS WebCore, which was an extension for vs code.
But I don't know how this project is doing at the moment.
Offline
Pages: 1