The reason I don't want to use Mason is that I really really like the idea of separating code and HTML
Mason allows this but does not require it. There are numerous options for how to organize your code in a Mason site, including the following:
<html>
<head><title><% $title %></title</head>
<body>
<h1>Welcome to <% $sitename %>!</h1>
<p>Our product of the day is <% $daily_product %>.</p>
</body>
</html>
<%init>
my $sitename = "Spuds.com";
my $title = "Spuds Home Page";
my $daily_product = get_daily_product();
</%init>
This doesn't seem to be significantly more confusing than an HTML::Template would be, even for the "pretty picture designer guy" -- they just stay away from the %init block.
Although you may not need them at first, Mason also has a bunch of additional features that might prove useful at some time in the future... It's powerful enough to support large public sites. |