Use URI::Escape on behalf of several components that need it.
[irspy-moved-to-github.git] / web / htdocs / chrome / layout.mc
index 14e7608..d44c17a 100644 (file)
@@ -1,13 +1,18 @@
-%# $Id: layout.mc,v 1.7 2006-09-25 16:47:36 mike Exp $
+%# $Id: layout.mc,v 1.11 2006-10-26 17:22:15 mike Exp $
 <%args>
 $debug => undef
 $title
 $component
 </%args>
 <%once>
-use lib "/usr/local/src/cvs/irspy/lib";
-use ZOOM::IRSpy;
-use ZOOM::IRSpy::Record qw(xml_encode);
+use URI::Escape;
+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%">