-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LB::JSON: Verbessern #873
Comments
->parse($jsonstring) parses an already available string with json data ->filename($newfilename) allows to set or change the filename of the json file Enhancement regarding to #873
Ich würde zwei Vereinfachungen gut finden: 1. Ersatz für das alte "associate => $cfg" Z. B. hier:
Ich könnte mir vorstellen, dass es so funktioniert:
Das erzeugt HTML::Template-Variablen mit dem Prefix CFG, z. B. <TMPL_VAR CFG.REMOTE.HTTPPORT> CFG soll ein Präfix sein. Zu den Hierarchien: Ich dachte man macht das so: <TMPL_VAR PRÄFIX.GRUPPE1.GRUPPE2.VAR>, also z. B. <TMPL_VAR CFG.REMOTE.HTTPPORT> 2. Automatisch Javascript-Block erzeugen Ich könnte mir vorstellen, dass es so funktioniert:
Erzeugt eine HTML::Template-Variable <TMPL_VAR PARSECFG>, die obigen JS-Block enthält. Hier müssen wir aber noch beachten, dass es vermutlich recht viele Sonderfälle gibt. Ich brauche z. B. $("#"+elemname).flipswitch( "refresh" ); anstelle von checkboxradio, weil ich die Checkbox-Elemente als FlipSwitch nutze. Zudem muss bei der else-Verzweigung der ElementType "file" ausgenommen werden (Sicherheitsbedingungen aller moderner Browser). |
- FIXES a bug that hashref to the hash was not stored correctly in all situations - Introducing ->flatten([$prefix]) - Introducing ->param (for use with HTML::Template) The $jsonobj directly can be sent to HTML::Template with it's associate parameter See the Wiki for examples: https://www.loxwiki.eu/display/LOXBERRY/Perl+Modul+LoxBerry%3A%3AJSON Refers to #873
Ich glaub, alles drin:
https://www.loxwiki.eu/display/LOXBERRY/Perl+Modul+LoxBerry%3A%3AJSON |
The text was updated successfully, but these errors were encountered: