Skip to content

Commit

Permalink
Build index page lazily.
Browse files Browse the repository at this point in the history
  • Loading branch information
rekado committed Oct 12, 2016
1 parent e4ec348 commit 7a99f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rcas/web/controller.scm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
(define (controller request body)
(match-lambda
((GET)
(render-html index))
(render-html (index)))
((POST "uploads" ...)
(render-json (upload-handler request body)))
((GET "result" id)
Expand Down
2 changes: 1 addition & 1 deletion rcas/web/view/html.scm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
(small "RNA Centric Annotation System")))
,body)))

(define index
(define (index)
(layout
#:head
`(;; The "Fine Uploader" library 5.11.5 taken from here:
Expand Down

0 comments on commit 7a99f65

Please sign in to comment.