Re:80% of my coding is doing this (or why templates are dead)
by nibbula on Friday July 28, 2017 @04:07AM
(#14872765)
Yes. As a Lisp programmer I've almost forgotten that I should be thankful to be able to say something as simple as:
(defun button-bar (name)
(let ((i 0))
(with-html-output (*page*)
(:div
(do-query (button-name)
(select [button-name]
:from [tools]
:where [= [bar] name])
(htm (:button
(format nil "~@r. ~a" (incf i) button-name))))))))
Re:80% of my coding is doing this (or why templates are dead)
by ue_ on Thursday July 27, 2017 @10:03PM
(#14871346)
I know that Arc uses macros, such as `blankpage` if I remember correctly, which will start you off with a <!doctype html><html> or whatever.
Re:80% of my coding is doing this (or why templates are dead)
by StokeMasterJack on Friday July 28, 2017 @01:20PM
(#14875865)
I do mention lisp (or rather Clojurescript)
EDIT: I just noticed that they reference Om :) Never mind!