diff --git a/Templates/partial.html.ep.tem b/Templates/partial.html.ep.tem index ba2e9f1..c4bcc3f 100644 --- a/Templates/partial.html.ep.tem +++ b/Templates/partial.html.ep.tem @@ -13,7 +13,7 @@ % } % my $btn = l('APPLY'); - %= form_for "${PackageName}d" => (method => 'POST') => begin + %= form_for "${lcPackageName}u" => (method => 'POST') => begin % param 'trt' => $$${prefix}_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $$${prefix}_data->{trt} %# Inputs etc in here. diff --git a/sm2gen.py b/sm2gen.py index 6648868..4a24e6f 100644 --- a/sm2gen.py +++ b/sm2gen.py @@ -669,7 +669,9 @@ if __name__ == "__main__": partial_mojo_context = {**json5_dict, **html} try: partial_mojo_template = partial_template.render( - version=strVersion, **partial_mojo_context + version=strVersion, **partial_mojo_context, + lcPackageName=json5_dict["PackageName"].lower() + ) with open(partial_files[i], "w") as file: file.write(partial_mojo_template)