all repos — min @ 71038e1cc11d743b9540aec78db2c3dfe3bdc684

A small but practical concatenative programming language.

Documented asset bundling
Wed, 23 Dec 2020 03:55:07 +0100




2 files changed, 4 insertions(+), 1 deletions(-)

jump to

@@ -4,3 +4,4 @@ * Added **require** symbol to read a min file and automatically create a module containing all symbols defined in the file.

* Added **invoke** symbol (and **\*** sigil) to easily call a symbol defined in a module or dictionary, e.g. `*mymodule/mymethod`. * Fixed library installation via nimble * Fixed error handling and stack trace for **start-server** symbol. +* Added the possibility to bundle assets in a compiled min program by specifying tbe **-a** (or **--asset-path**) option.
M site/contents/get-started.mdsite/contents/

@@ -98,7 +98,7 @@

* No checks will be performed when defining symbols. * Only the simple REPL will be available. * There will be no support for dynamic libraries. -* The **-m, \-\-module-path** option has no effect. +* The **-m, \-\-module-path** and **-a, \-\-asset-path** options have no effect. * No environment configuration files ([.minrc](class:file), [.min_symbols](class:file)) are used. ## Running the min Shell

@@ -168,6 +168,8 @@

> %min-terminal% > > [$](class:prompt) min -c run.min -m:tasks + +Similarly, you can also bundle additional files in the executable by specifying the `-a:<path>` (or `--asset-path`) option. At runtime, the compiled min program will attempt to lookup bundled asset files before checking the filesystem. > %note% > Note