3 ms·
It's situations like that where I'd like a way to write <?python And dump some python code the same what you'd do php and have my web server serve it up. I
by jjice 6y ago
It's situations like that where I'd like a way to write
<?python
And dump some python code the same what you'd do php and have my web server serve it up. It would be handy, but I'm sure the uses cases are limited.
- ralph87 6y agoThis style of embedding was popular at one point in Python's evolution before Django appeared. You can probably find 10 such systems in this list: https://wiki.python.org/moin/WebFrameworks#Discontinued.2FInactive_Frameworks https://wiki.python.org/moin/WebFrameworks#Discontinued.2FIn... There are probably a few still around
- dotancohen 6y agoIf you are sufficiently motivated, you might look into Emac's "babel" scripts, which can run Python embedded in org-mode files. You could use mod_wsgi in Apache to set your .pml (Python Markup Language, I just made that up) files to be parsed.