Browse Source

spider-gazelle to use template renderer (#4377)

reduces memory allocations
Stephen von Takach 6 years ago
parent
commit
d2677b9003
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Crystal/spider-gazelle/src/controllers/benchmark.cr

+ 1 - 1
frameworks/Crystal/spider-gazelle/src/controllers/benchmark.cr

@@ -68,6 +68,6 @@ class Benchmark < Application
 
 
     # by default this would have been returned as text/html
     # by default this would have been returned as text/html
     response.content_type = FORTUNE_CTYPE
     response.content_type = FORTUNE_CTYPE
-    render html: Kilt.render("src/views/fortunes.ecr")
+    render template: "fortunes.ecr"
   end
   end
 end
 end