The code:
(restas:define-module #:restas.api
(:use #:cl))
(in-package #:restas.api)
(restas:start '#:restas.api :port 3000)
(restas:define-route main-tr ("/tr" :method :post)
(let* ((raw-data (hunchentoot:raw-post-data :force-text t))
(params (json:decode-json-from-string raw-data)))
"<h1> It Worksasasas! ${{params}} {{params}} <var> params </var> </h1>"))
in Postman gives me:
=> It Worksasasas! ${{params}} {{params}} params
but does not print the values of params in Postman, to print a value of a varible in Postman. What must i do? (check the screen shot of Postman please)Postman details
I need to get the value of the variable not the name.
In the github page of restas it says:
It means you have to use cl-closure-template e.g. if you want to use templating within restas - at least how I understood it...