Comment

Comment by dreadnaut

> Does anyone have any examples of any other single-file app with a comprehensive interface like Files app that is entirely self-contained?

phpLiteAdmin (https://github.com/phpLiteAdmin/pla) is developed as separate PHP, JS, and CSS files. A "build" script merges all into a single PHP script, which includes compressed resources inlined after a call to `__halt_compiler()`. The same code can run as separate files, or as a single one.

I wrote the original "build", years ago, as we started extracting classes out of a procedural single file.

[edit] Link to the interesting bit: https://github.com/phpLiteAdmin/pla/blob/master/phpliteadmin...

parent dreadnaut 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton