From 5097f64c0112a46cb83a8f8c1f960724accc3325 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 23 Apr 2012 14:31:51 -0400 Subject: [PATCH] added template error output; formatting Signed-off-by: Bill Erickson --- eg2012_tpac.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/eg2012_tpac.txt b/eg2012_tpac.txt index 3efade7b3..69c6338e7 100644 --- a/eg2012_tpac.txt +++ b/eg2012_tpac.txt @@ -167,6 +167,9 @@ Good

[% l('Hello, [_1]!', world_string) %]

------------------------------------------------------------------------------ +Template Toolkit Syntax: I18N / Plurals +--------------------------------------- + Plural ~~~~~~ [source, html] @@ -263,9 +266,9 @@ Context Data * 3 generic classes of data retrieval functions are passed into the template environment. For each, replace HINT with the class hint of the desired object. ** ctx.get_HINT - *** inherited_vis = ctx.get_cgf('opac.org_unit.non_inheritied_visibility').enabled == 'f'; + *** inherited_vis = ctx.get_cgf("opac.org_unit.non_inheritied_visibility").enabled == "f"; ** ctx.search_HINT - *** item_langs = ctx.search_ccvm('ctype', 'item_lang'); + *** item_langs = ctx.search_ccvm("ctype", "item_lang"); ** ctx.HINT_list *** copy_status_list = ctx.ccs_list; * ctx.aou_tree provides the canonical org unit tree @@ -286,6 +289,15 @@ PerlSetVar OILSWebDebugTemplate "true" ------------------------------------------------------------------------------ * The Apache error log (e.g. /var/log/apache2/error.log) is the starting point for debugging practically all TPAC errors. + + * Template Error +[source, log] +------------------------------------------------------------------------------ +[Mon Apr 23 14:26:22 2012] [warn] [client 71.70.141.149] +egweb: template error: file error - parse error - +opac/home.tt2 line 16: unexpected token (END)\n [% END %] +------------------------------------------------------------------------------ + * Perl module error [source, log] ------------------------------------------------------------------------------ [Mon Apr 09 10:36:21 2012] [warn] [client 50.79.238.214] -- 2.11.0