(minor) docs: scripting intro, footer

This commit is contained in:
vindarel 2023-03-16 18:31:37 +01:00
parent 5f85407fcc
commit 5ba99d4e98
2 changed files with 17 additions and 3 deletions

View file

@ -48,7 +48,8 @@
var footer = [
'<hr/>',
'<footer style="text-align: right;">',
'<span style=\"color: dimgrey\">CIEL developers 2023. <a href="https://github.com/sponsors/vindarel/">Show your love!</a></span>',
'<div style=\"color: dimgrey\">CIEL developers 2023. <a href="https://github.com/sponsors/vindarel/">Show your love!</a></div>',
'<div style=\"color: dimgrey\"> Discover our <a href="https://www.udemy.com/course/common-lisp-programming/?referralCode=2F3D698BBC4326F94358" style=\"color: dimgrey\">Common Lisp course in videos.</a></div>',
'</footer>'
].join('');
@ -65,5 +66,6 @@
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code@2"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<script defer data-domain="ciel-lang.org" src="https://plausible.io/js/script.js"></script>
</body>
</html>

View file

@ -1,6 +1,15 @@
# Scripting
> Note: this is brand new! Expect limitations and changes.
CIEL provides a fast-starting scripting solution for Common Lisp.
It is based on a standalone binary (created with the fast SBCL
implementation) and it ships useful built-in utilities, for real-world
needs: HTTP, JSON, CSV handling, plotting, and more. You just have to
get the binary and run your script. Use a shebang line if you wish.
It's a fast and easy solution to write Lisp code for your day-to-day tasks.
> Note: this is brand new! Expect limitations and changes.
Get the `ciel` binary and call it with your .lisp script:
@ -8,7 +17,7 @@ Get the `ciel` binary and call it with your .lisp script:
$ ciel script.lisp
```
(or `./script.lisp` with a shebang line, see below)
(or just `./script.lisp` with a shebang line, see below)
Call built-in scripts:
@ -21,6 +30,9 @@ $ ciel -s simpleHTTPserver 9000
An example script:
```lisp
#!/usr/bin/env ciel
;; optional shebang line, only for the short ./script call)
;; Start your script with this to access all CIEL goodies:
(in-package :ciel-user)