Name: /prog/ling 2009-11-12 20:16
Hey guys, as a first prog language dealing with websites, should I learn Perl, PHP, or Ruby first?
function lines (stmt)
local cur = assert (conn:execute(stmt))
return function ()
return cur:fetch()
end
end
<section>
<% for id, name in lines "select id, name from column" do %>
<article>
<header>
<h1><%= id %></h1>
</header>
<div>
<p><%= name %></p>
</div>
</article>
<% end %>
</section>