Get irspy_xpath_context() and xml_encode() from ZOOM::IRSpy
[irspy-moved-to-github.git] / web / htdocs / chrome / layout.mc
index 3bae08b..600b9f0 100644 (file)
@@ -1,12 +1,17 @@
-%# $Id: layout.mc,v 1.5 2006-09-19 16:33:19 mike Exp $
+%# $Id: layout.mc,v 1.10 2006-10-20 16:56:07 mike Exp $
 <%args>
 $debug => undef
 $title
 $component
 </%args>
 <%once>
-use lib "/usr/local/src/cvs/irspy/lib";
-use ZOOM::IRSpy;
+BEGIN {
+    use vars qw($LIBDIR);
+    $LIBDIR = $r->dir_config("IRSpyLibDir");
+}
+use lib $LIBDIR;
+use ZOOM::IRSpy::Web;
+use ZOOM::IRSpy qw(irspy_xpath_context xml_encode);
 </%once>
 <& /chrome/head.mc, title => $title &>
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
@@ -24,6 +29,7 @@ use ZOOM::IRSpy;
     <td class="spacer">&nbsp;</td>
     <td valign="top">
 <& $component, %ARGS &>
+    </td>
    </tr>
   </table>
 <& /chrome/tail.mc &>