HTML :: Prozessor.

HTML :: Prozessor-Perl-Modul ist ein HTML-Vorlagenprozessor.
Jetzt downloaden

HTML :: Prozessor. Ranking & Zusammenfassung

Anzeige

  • Rating:
  • Lizenz:
  • Perl Artistic License
  • Preis:
  • FREE
  • Name des Herausgebers:
  • Paul Schnell
  • Website des Verlags:
  • http://search.cpan.org/~pschnell/HTML-Processor-0.2.1/Processor.pm

HTML :: Prozessor. Stichworte


HTML :: Prozessor. Beschreibung

HTML :: Prozessor-Perl-Modul ist ein HTML-Template-Prozessor. Synopsis-perl Verwenden Sie HTML :: Prozessor; $ tpl = Neuer HTML :: Prozessor; -oder mit Konfigurationsoptionen- $ tpl = Neuer HTML :: Prozessor ({debug => "Normal", Footprint => 1, sauber => 0}); # Daten% Tiere = (Säugetiere => {Typen => , Ganzzahl => 120}, Fish => {Typen => , Ganzzahl = > 85}, Reptilien => {Typen => , Ganzzahl => 25}, Birds => {Typen => , zählen => 57 }); # Erstellen von Elternschleifenobjekt Meine $ Tiere = $ tpl-> new_loop ("Tiere"); FOREACH MY $ ANIMAL_TYPE (Keys% Tiere) {# Hinzufügen von Daten an die Elternschleife $ Tiere-> Array ("tier_type", $ tier_type); $ tiere-> array ("count", $ tiere {$ tier_type} {count}); # Neue verschachtelte Schleifenobjekt erstellen 'Keyed' auf # Der Elternteil via $ tier_type Meine $ type = $ tpl-> new_loop ("Typen", $ tier_type); FOREACH MEIN $ TYPE (@ {$ tiere {$ tier_type} {type}}}) {# füllen Sie jedes 'Child' Loop $ typen-> Array ("Typ", $ Type); }} # Set Variablen $ tpl-> variable ("Was", "Tiere"); $ tpl-> variable ("count", 2); # Prozess- und Drucken analysierte Vorlage drucken $ tpl-> Prozess ("Templates / Tiere.HTML"); Anforderungen: · Perl.


HTML :: Prozessor. Zugehörige Software