[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Artanis] art utility produces code that's doesn't work(or maybe I'm wro

From: Alexander Sharihin
Subject: [Artanis] art utility produces code that's doesn't work(or maybe I'm wrong)
Date: Tue, 24 Oct 2017 15:39:33 +0300


I'm trying to begun work with Artanis WAF, and for beginning created skeleton via "art" command(and created controller as in example).

I've removed hard coded html in generated controller and try to use templates:

(article-define show
  (lambda (rc)
  ;; TODO: add controller method `show'
  ;; uncomment this line if you want to render view from template
  (view-render "show")

But I've got error:

In ice-9/boot-9.scm:
    837:9  2 (catch artanis-err #<procedure 22bffe0 at artanis/page…> …)
In unknown file:
           1 (_ #<procedure 22bf1e0 at artanis/page.scm:83:6 ()> #<…> …)
In app/controllers/article.scm:
      7:2  0 (_ _)
ERROR: In procedure module-lookup: Unbound variable: view-render
GNU Artanis encountered exception!
HTTP 500
In procedure handle-request :
Internal ERROR unbound-variable (module-lookup Unbound variable: ~S (view-render) #f)!

Am I doing something wrong? Or maybe example need some updates? 

What is right way for using templates(maybe tpl->response with relative path to view).

Thank you for patience(mine English isn't native, sorry). 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]