From 9e9817e007e9fa5b6ac2d2009759705f4a62225f Mon Sep 17 00:00:00 2001 From: Brian Read Date: Tue, 5 Nov 2024 18:37:19 +0000 Subject: [PATCH] Clean up partial template, add debug condition for shared data dump --- Templates/partial.html.ep.tem | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Templates/partial.html.ep.tem b/Templates/partial.html.ep.tem index 4c0b13b..ba2e9f1 100644 --- a/Templates/partial.html.ep.tem +++ b/Templates/partial.html.ep.tem @@ -2,18 +2,19 @@ %# Generated by ${version} %#
- -
-%= dumper $$${prefix}_data
-
- % my $btn = l('APPLY'); - %= form_for "${PackageName}d" => (method => 'POST') => begin - - % param 'trt' => $$${prefix}_data->{trt} unless param 'trt'; + + % if ($config->{debug} == 1) { +
+			%= dumper $$${prefix}_data
+		
+ % } + % my $btn = l('APPLY'); + %= form_for "${PackageName}d" => (method => 'POST') => begin + % param 'trt' => $$${prefix}_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $$${prefix}_data->{trt} %# Inputs etc in here. %# Probably finally by a submit.