| 1 | # ----------------------------------------------------------------------------- | ||
| 2 | |||
| 3 | =encoding utf8 | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Quiq::Html::Producer - Generierung von HTML-Code | ||
| 8 | |||
| 9 | =head1 BASE CLASS | ||
| 10 | |||
| 11 | L<Quiq::Html::Construct> | ||
| 12 | |||
| 13 | =head1 DESCRIPTION | ||
| 14 | |||
| 15 | Die Klasse vereinigt die Funktionalität der Klassen Quiq::Html::Tag | ||
| 16 | und Quiq::Html::Construct und erlaubt somit die Generierung von | ||
| 17 | einzelnen HTML-Tags und einfachen Tag-Konstrukten. Sie | ||
| 18 | implementiert keine eigene Funktionalität, sondern erbt diese von | ||
| 19 | ihren Basisklassen. Der Konstruktor ist in der Basisklasse | ||
| 20 | Quiq::Html::Tag implementiert. | ||
| 21 | |||
| 22 | Vererbungshierarchie: | ||
| 23 | |||
| 24 | Quiq::Html::Tag (einzelne HTML-Tags) | ||
| 25 | | | ||
| 26 | Quiq::Html::Construct (einfache Konstrukte aus HTML-Tags) | ||
| 27 | | | ||
| 28 | Quiq::Html::Producer (vereinigte Funktionalität) | ||
| 29 | |||
| 30 | Einfacher Anwendungsfall: | ||
| 31 | |||
| 32 | my $h = Quiq::Html::Producer->new; | ||
| 33 | print Quiq::Html::Page->html($h, | ||
| 34 | ... | ||
| 35 | ); | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | # ----------------------------------------------------------------------------- | ||
| 40 | |||
| 41 | package Quiq::Html::Producer; | ||
| 42 | 8 | ▶ | use base qw/Quiq::Html::Construct/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 43 | |||
| 44 | 8 | ▶ | use v5.10; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 45 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 46 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | |||
| 48 | 8 | our $VERSION = '1.240'; | |
| 49 | |||
| 50 | # ----------------------------------------------------------------------------- | ||
| 51 | |||
| 52 | =head1 VERSION | ||
| 53 | |||
| 54 | 1.240 | ||
| 55 | |||
| 56 | =head1 AUTHOR | ||
| 57 | |||
| 58 | Frank Seitz, L<http://fseitz.de/> | ||
| 59 | |||
| 60 | =head1 COPYRIGHT | ||
| 61 | |||
| 62 | Copyright (C) 2026 Frank Seitz | ||
| 63 | |||
| 64 | =head1 LICENSE | ||
| 65 | |||
| 66 | This code is free software; you can redistribute it and/or modify | ||
| 67 | it under the same terms as Perl itself. | ||
| 68 | |||
| 69 | =cut | ||
| 70 | |||
| 71 | # ----------------------------------------------------------------------------- | ||
| 72 | |||
| 73 | 8 | 1; | |
| 74 | |||
| 75 | # eof | ||