#!/usr/local/bin/haserl
Content-Type: text/html
<% # define a user function
table_element() {
echo "
$1 | "
}
%>
<% for a in Red Blue Yellow Cyan; do %>
<% table_element $a %>
<% done %>
<%# Use Shell defined functions.
Same as above, but uses a shell function instead of embedded html. %>