Pull in xml_encode()
[irspy-moved-to-github.git] / web / htdocs / chrome / layout.mc
index a5fefe8..14e7608 100644 (file)
@@ -1,4 +1,4 @@
-%# $Id: layout.mc,v 1.3 2006-09-19 11:13:58 mike Exp $
+%# $Id: layout.mc,v 1.7 2006-09-25 16:47:36 mike Exp $
 <%args>
 $debug => undef
 $title
 <%args>
 $debug => undef
 $title
@@ -7,10 +7,8 @@ $component
 <%once>
 use lib "/usr/local/src/cvs/irspy/lib";
 use ZOOM::IRSpy;
 <%once>
 use lib "/usr/local/src/cvs/irspy/lib";
 use ZOOM::IRSpy;
+use ZOOM::IRSpy::Record qw(xml_encode);
 </%once>
 </%once>
-<%perl>
-my $text = $m->scomp($component, %ARGS);
-</%perl>
 <& /chrome/head.mc, title => $title &>
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
 <& /chrome/bannerrow.mc, title => $title &>
 <& /chrome/head.mc, title => $title &>
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
 <& /chrome/bannerrow.mc, title => $title &>
@@ -24,9 +22,10 @@ my $text = $m->scomp($component, %ARGS);
     <td valign="top" class="panel1">
 <& /chrome/menu.mc &>
     </td>
     <td valign="top" class="panel1">
 <& /chrome/menu.mc &>
     </td>
-    <td class="spacer"></td>
+    <td class="spacer">&nbsp;</td>
     <td valign="top">
     <td valign="top">
-     <% $text %>
+<& $component, %ARGS &>
+    </td>
    </tr>
   </table>
 <& /chrome/tail.mc &>
    </tr>
   </table>
 <& /chrome/tail.mc &>