templ.ss example mutated

This commit is contained in:
voidlizard 2025-02-02 17:37:58 +03:00
parent 0d10939e15
commit d0e8c6741d
1 changed files with 24 additions and 10 deletions

View File

@ -2,9 +2,18 @@
(define h html)
(define (bold . co) [html b [kw] co])
(define (ul . co) [html :ul [kw] co] )
(define (td . co) [html :td [kw] co] )
(define files
[sort-by [fn 1 [nth 8 _1]] [call:proc ls -la]]
)
print
[h :html [kw]
[h :head [kw] ]
[h body [kw]
[h h1 [kw] "jopa kita" ]
[h br]
@ -18,11 +27,16 @@ print
Тут конечно надо все элементы пробивать пробелами,
и это легко сделать!
]
[ul
[map [fn 1 [html li [kw] [car _1] ] ] [grep NIX [env]]]
]
[html :table [kw]
[map [fn 1 [html :tr [kw] [td [nth 4 _1]] [td [nth 8 _1]] ] ] files ]
]
]
]