Minor changes.
h3rald h3rald@h3rald.com
Tue, 08 Dec 2020 21:05:05 +0000
1 files changed,
5 insertions(+),
3 deletions(-)
jump to
M
site/contents/learn-extending.md
→
site/contents/learn-extending.md
@@ -85,7 +85,7 @@
The following code is taken from [HastySite](https://github.com/h3rald/hastysite) and shows how to define a new `hastysite` module containing some symbols (`preprocess`, `postprocess`, `process-rules`, ...): ``` -import packages/min/min +import min proc hastysite_module*(i: In, hs1: HastySite) = var hs = hs1@@ -167,12 +167,14 @@
You can compile the following library by running the following command: > %min-terminal% -> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain dyntest.nim +> [$](class:prompt) nim c \-\-app:lib -d:release \ +> \-\-noMain dyntest.nim If you are using [clang](https://clang.llvm.org/) to compile Nim code, you may need to run the following command instead: > %min-terminal% -> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain -l:"-undefined dynamic\_lookup" dyntest.nim +> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain \ +> -l:"-undefined dynamic\_lookup" dyntest.nim Now you should have a `libdyntest.so|dyn|dll` file. To make min load it and link it automatically when it starts, just run: