Chris Parker | 13 Jun 01:36
Picon

What I can send to :env

Is there any way that I can send a list of objects to env?

I would love to do something like this:

<% <at> loop product-list %>
     <% (name product-list) %> <% (title product-list) %><br />
<% <at> endloop %>

where product-list is a result of a
clsql:select 'product
query where i would normally write

(loop for product in (clsql:select 'product :flatp t) do
    (print (name product))

thanks


<div><p>Is there any way that I can send a list of objects to env?<br><br>I would love to do something like this:<br><br>&lt;%  <at> loop product-list %&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;% (name product-list) %&gt; &lt;% (title product-list) %&gt;&lt;br /&gt;
<br>&lt;%  <at> endloop %&gt;<br><br>where product-list is a result of a <br>clsql:select 'product<br>query where i would normally write<br><br>(loop for product in (clsql:select 'product :flatp t) do<br>&nbsp;&nbsp;&nbsp; (print (name product))
<br><br>thanks<br><br><br></p></div>

Gmane