Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Web Pascal without JavaScript = Pascal + HTMX
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
'Rounding' to (say) 5 DP
by
CM630
[
Today
at 07:41:05 pm]
DCPcrypt v2.0.6 — Cryptog...
by
Ten_Mile_Hike
[
Today
at 07:40:22 pm]
[SOLVED] Lazarus recompil...
by
creaothceann
[
Today
at 07:37:12 pm]
Form has no Taskbar entry...
by
Hartmut
[
Today
at 07:32:47 pm]
4.4 messed with the proje...
by
QEnnay
[
Today
at 07:26:00 pm]
Anyone else getting a tro...
by
dseligo
[
Today
at 07:24:37 pm]
MVP made easier.
by
cdbc
[
Today
at 07:04:04 pm]
A diary project with SQLi...
by
cdbc
[
Today
at 06:58:37 pm]
Is it possible to create ...
by
LeP
[
Today
at 06:17:26 pm]
Duplicated icon in the Wi...
by
n7800
[
Today
at 06:11:54 pm]
[AGGPas] Difference betwe...
by
cdbc
[
Today
at 05:02:28 pm]
[SOLVED] Statically linki...
by
marcov
[
Today
at 04:56:09 pm]
[ANN] fpGUI Toolkit v2.0....
by
marcov
[
Today
at 04:40:24 pm]
pas2js WebAssembly SQLite...
by
PierceNg
[
Today
at 03:32:46 pm]
StrMath.pas a String Numb...
by
JgQDev
[
Today
at 03:27:23 pm]
My AGGPas examples
by
Roland57
[
Today
at 02:10:03 pm]
Datatype of Fields in sql...
by
Dzandaa
[
Today
at 01:46:59 pm]
Debian removes FPC/Lazaru...
by
robert rozee
[
Today
at 01:29:02 pm]
Status of FPC 3.4.0 or FP...
by
marcov
[
Today
at 01:27:35 pm]
TurboBird IBX
by
valdir.marcos
[
Today
at 10:38:16 am]
Delphi Magazine issues 1-...
by
valdir.marcos
[
Today
at 10:37:33 am]
We are starting to use La...
by
dbannon
[
Today
at 06:25:04 am]
Fast Canvas Library V1.05...
by
backprop
[
Today
at 03:19:31 am]
TurboBird for FireBird 5
by
maurog
[
Today
at 02:28:10 am]
lazarus structure
by
crownfield
[
Today
at 12:28:23 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Web Pascal without JavaScript = Pascal + HTMX (Read 5646 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 HTM
X
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
»
Logged
PierceNg
Sr. Member
Posts: 423
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.
Logged
Pascal blog posts, open source:
-
https://samadhiweb.com/tags/Pascal.html
-
https://github.com/PierceNg/fpwebview
-
https://github.com/PierceNg/wasm-demo
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!
Logged
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!
Logged
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?
Logged
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!
Logged
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?
Logged
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?
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Web Pascal without JavaScript = Pascal + HTMX
TinyPortal
© 2005-2018