mirror of https://github.com/voidlizard/hbs2
templ.ss example mutated
This commit is contained in:
parent
0d10939e15
commit
d0e8c6741d
|
@ -2,9 +2,18 @@
|
||||||
(define h html)
|
(define h html)
|
||||||
(define (bold . co) [html b [kw] co])
|
(define (bold . co) [html b [kw] co])
|
||||||
(define (ul . co) [html :ul [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
|
print
|
||||||
|
|
||||||
|
[h :html [kw]
|
||||||
|
|
||||||
|
[h :head [kw] ]
|
||||||
|
|
||||||
[h body [kw]
|
[h body [kw]
|
||||||
[h h1 [kw] "jopa kita" ]
|
[h h1 [kw] "jopa kita" ]
|
||||||
[h br]
|
[h br]
|
||||||
|
@ -18,11 +27,16 @@ print
|
||||||
|
|
||||||
Тут конечно надо все элементы пробивать пробелами,
|
Тут конечно надо все элементы пробивать пробелами,
|
||||||
и это легко сделать!
|
и это легко сделать!
|
||||||
|
]
|
||||||
|
|
||||||
[ul
|
[ul
|
||||||
[map [fn 1 [html li [kw] [car _1] ] ] [grep NIX [env]]]
|
[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 ]
|
||||||
|
]
|
||||||
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue