hook for external renderer

pull/253/head
Matthew Butterick 4 years ago
parent a7b55e230a
commit a4910a86dc

@ -1 +1 @@
1615671175 1616607395

@ -259,7 +259,7 @@
[(not render-cache-activated?) 'render-cache-deactivated] [(not render-cache-activated?) 'render-cache-deactivated]
[else #false])) [else #false]))
(when render-needed? (when render-needed?
(define render-thunk (or maybe-render-thunk (λ () (render source-path template-path output-path)))) ; returns either string or bytes (define render-thunk (or maybe-render-thunk (λ () ((or (setup:external-renderer) render) source-path template-path output-path)))) ; returns either string or bytes
(define render-result (define render-result
(cond (cond
[render-cache-activated? [render-cache-activated?

@ -134,3 +134,5 @@
(define-settable index-pages '("index.html")) (define-settable index-pages '("index.html"))
(define-settable allow-unbound-ids? #true) (define-settable allow-unbound-ids? #true)
(define-settable external-renderer #false)

Loading…
Cancel
Save