https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41324
Jonathan Druart <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |In Discussion CC| |[email protected], | |[email protected] | |o.uk, | |[email protected], | |[email protected], | |[email protected], | |[email protected] --- Comment #4 from Jonathan Druart <[email protected]> --- Patches for discussion. One last thing that is not tidy is the script tags from the .tt files. If script tags have TT tags, the prettier plugin cannot tidy them. I was trying to provide a solution to prevent regressions for bug 39715. I think this is great, but it will introduce conflicts. I am happy to continue, but I first need to know if people want that. The idea is to use JS variables instead of TT variables, and have the assignment in a first script block. example: ``` <script> // This cannot be tidy [% IF foo %] # do something [% ELSE %] let foo = 42; [% END %] </script> ``` => ``` <script> // This still cannot be tidy let foo = [% foo ? 1 : 0 %]; </script> <script> // But now this will be tidy automatically! if ( foo ) { # do something } else { let foo = 42; } </script> ``` On this bug report I will mainly focus on kohaTable, but it may actually impact whole template file. See also bug 41323 for the "remaining ones". -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
