Make form module name in partials lowercase - part of routing problem

This commit is contained in:
Brian Read 2024-11-05 18:56:37 +00:00
parent 9e9817e007
commit 8f7f24dbec
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@
</pre>
% }
% 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.

View File

@ -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)