Recent

Author Topic: Web Pascal without JavaScript = Pascal + HTMX  (Read 4846 times)

zendrael

  • New Member
  • *
  • Posts: 16
Web Pascal without JavaScript = Pascal + HTMX
« on: October 13, 2023, 07:12:24 pm »
Hello!

Started a project with Pascal (CGI) and HTMX lib, which enables you to create SPA (Single Page Applications) without using JavaScript.

https://github.com/zendrael/create_htmx_pascal_app

I hope it turns out to be interesting to some people and serve as a starting point.

[edit] changed repo address
« Last Edit: January 13, 2025, 05:18:50 pm by zendrael »

PierceNg

  • Sr. Member
  • ****
  • Posts: 398
    • SamadhiWeb
Re: Web Pascal without JavaScript = Pascal + HTMX
« Reply #1 on: October 14, 2023, 02:57:17 am »
Nice. I use HTMX in my projects, including in my blog which is 99% static content. Good stuff.

How about adding another demo using fphttpapp, to do away with using Python entirely.

zendrael

  • New Member
  • *
  • Posts: 16
Re: Web Pascal without JavaScript = Pascal + HTMX
« Reply #2 on: October 14, 2023, 09:25:22 pm »
Great idea Pierce, thanks for sharing it!

I'll also probably make a Pas2JS node module one, too!

nummer8

  • Full Member
  • ***
  • Posts: 124
Re: Web Pascal without JavaScript = Pascal + HTMX
« Reply #3 on: October 14, 2023, 10:31:00 pm »
Hi zendrael,

Thanks for the short CGI demo.
I used it to make a small fphttpapp demo.
The code is in the attachment.

HTMX is something to explore for sure!
Have fun!

zendrael

  • New Member
  • *
  • Posts: 16
Re: Web Pascal without JavaScript = Pascal + HTMX
« Reply #4 on: October 15, 2023, 02:19:17 pm »
Hi nummer8!

Thanks a lot for sharing the code!

Can I modify it a little and add to the repo structure?

nummer8

  • Full Member
  • ***
  • Posts: 124
Re: Web Pascal without JavaScript = Pascal + HTMX
« Reply #5 on: October 15, 2023, 02:28:42 pm »
Sure!
No problem
You can use the code as you wish!

TheEditor

  • New Member
  • *
  • Posts: 22
Re: Web Pascal without JavaScript = Pascal + HTMX
« Reply #6 on: October 20, 2023, 06:59:13 am »
I'm unable to get nummer8's demo to work. "localhost" just downloads the index.html rather than render it. Mime types issue perhaps?

zendrael

  • New Member
  • *
  • Posts: 16
Re: Web Pascal without JavaScript = Pascal + HTMX
« Reply #7 on: January 13, 2025, 05:19:57 pm »
Which are the steps you are using to compile and run it?

 

TinyPortal © 2005-2018