Symbolic Expressions As Markup.
Because all markup is terrible, especially XML/SGML and derivatives.
But mainly, for easier static markup code generation, such as with macros, code includes and such.
Mainly this should be used as a library, such as from within a server, generating HTML (or any other supported markup) before it is served to the client.
Providing you have installed seam
with
sh
cargo install seam
You may use it by doing
sh
seam test.sex --html > test.html
test.sex
contains your symbolic-expressions, which is used to generate
HTML, saved in test.html
.
Likewise, you may do
sh
cat test.sex | seam --html > test.html
or
```sh
seam --html <<< "(p Hello World)"
Hello World
```
style="..."
object should handle s-expressions well, (e.g. (p :style (:color red :border none) Hello World)
)<style>
tag should allow for normal CSS syntax if just given a string.@
syntax in CSS, such as @import
and @media
.JSON
, JS
, TOML
, &c.).(%include ...)
, which already exists).(%define (red-para txt) (p :style "color: red" %txt))
)(%chez (+ 1 2))
executes
(+ 1 2)
with Chez-Scheme LISP, and places the result in the source
(i.e. 3
).