Added two sentences to Using, and updated Notes

gh-pages
Hauke D 7 years ago
parent 4ef04f461f
commit e52844123f

@ -23,8 +23,8 @@ Other places I've written about WebPerl:
Talks: Talks:
- YAPC::EU 2018 in Glasgow - [lightning talk](http://act.perlconference.org/tpc-2018-glasgow/talk/7475), [Video Link](https://youtu.be/KrGSg7uVZj0?t=29520) - YAPC::EU 2018 in Glasgow - [lightning talk](http://act.perlconference.org/tpc-2018-glasgow/talk/7475), [Video Link](https://youtu.be/KrGSg7uVZj0?t=29520)
- *(planned)* German Perl Workshop 2019 - [talk](http://act.yapc.eu/gpw2019/talk/7616) (in German 🇩🇪) - *(planned)* German Perl Workshop 2019 in Munich - [talk](http://act.yapc.eu/gpw2019/talk/7616) (slides in English, talk in German 🇩🇪)
- *(hopefully)* YAPC::EU 2019 ([PerlCon](https://perlcon.eu/)) in Rīga - *(planned)* YAPC::EU 2019 (PerlCon) in Rīga - [talk](https://perlcon.eu/talk/40)
[![DOI 10.5281/zenodo.1400490](https://zenodo.org/badge/DOI/10.5281/zenodo.1400490.svg)](https://doi.org/10.5281/zenodo.1400490) [![DOI 10.5281/zenodo.1400490](https://zenodo.org/badge/DOI/10.5281/zenodo.1400490.svg)](https://doi.org/10.5281/zenodo.1400490)

@ -271,8 +271,9 @@ It is important to keep apart the different ways to access files:
- A `<script type="text/perl" src="foo.pl"></script>` tag will cause `webperl.js` - A `<script type="text/perl" src="foo.pl"></script>` tag will cause `webperl.js`
to fetch `foo.pl` from the *web server*, not the virtual filesystem! to fetch `foo.pl` from the *web server*, not the virtual filesystem!
- *However*, that Perl script will *also* only see the virtual filesystem, - *However*, that Perl script will *also* only see the virtual filesystem,
not the web server, so it won't even be able to see "itself". You can still not the web server, so it won't even be able to see "itself" (`webperl.js`
fetch things from the webserver using e.g. AJAX requests. may save files such as `/tmp/scripts.pl`, but that's *not* guaranteed).
You can still fetch things from the webserver using e.g. AJAX requests.
While a WebPerl instance is running, you can modify files in the virtual file system While a WebPerl instance is running, you can modify files in the virtual file system
as you might be used to from regular Perl. But the virtual filesystem is reloaded every as you might be used to from regular Perl. But the virtual filesystem is reloaded every
@ -294,6 +295,7 @@ either. If you need to safely store files, it's best to store them on the user's
In particular, even though you might make heavy use of `/mnt/idb` when testing with the "mini IDE", In particular, even though you might make heavy use of `/mnt/idb` when testing with the "mini IDE",
remember that this storage is *not* a way to distribute files to your users, and in fact, some remember that this storage is *not* a way to distribute files to your users, and in fact, some
users' browsers may automatically regularly clear the `IndexedDB`, or have it disabled altogether. users' browsers may automatically regularly clear the `IndexedDB`, or have it disabled altogether.
It also may not work at all in a "sandboxed" `iframe`.
For providing your application to your users, either use `<script type="text/perl">` tags, For providing your application to your users, either use `<script type="text/perl">` tags,
compile the script into the virtual file system, or use the JavaScript `Perl` object. compile the script into the virtual file system, or use the JavaScript `Perl` object.

Loading…
Cancel
Save