[Pas2js] Pas2js 0.9.24

Michael Van Canneyt michael at freepascal.org
Sun Jun 3 09:56:59 CEST 2018



On Sun, 3 Jun 2018, Ryan Joseph wrote:

>
>
>> On Jun 3, 2018, at 1:28 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>> 
>> Actually, this is why React is last on my list. I think that they way in which they intermingle HTML and javascript is a really bad idea.
>
> It’s a pre-parser also right? I thought that was part of the appeal. I’m not aware you could insert HTML into JavaScript like PHP does.

You can't insert it directly. It's indeed a pre-parser.

The "code" - which is what you work with and what is fed to the preparser - is HTML intermingled with Javascript.

>
> Are there any examples of an actual web page using pas2js? I would think making a web page by manually inserting the DOM line by line would be really messy but I need to see an example I guess.

See the demos. There are various examples that construct web pages.

>
> If you like Vue.js most maybe there could be a pas2js version of a simple program, if that’s even possible. Just anything to see what a modern web page would look like.

Check the xdr, rest or fpreport demo. 
They all use Bootstrap, which is more or less what a modern UI looks like. 
But they do not use Vue.js or react-like techniques:
They construct the DOM using Javascript classes.

I will see if I can make a sample that uses Vue.js.

Michael.


More information about the Pas2js mailing list