]> git.pld-linux.org Git - packages/php-pear-HTML_Template_IT.git/blame - php-pear-HTML_Template_IT.spec
- release 2
[packages/php-pear-HTML_Template_IT.git] / php-pear-HTML_Template_IT.spec
CommitLineData
6d7c0acc
PG
1%include /usr/lib/rpm/macros.php
2%define _class HTML
3%define _subclass Template
8df37baa 4%define _status stable
6d7c0acc 5%define _pearname %{_class}_%{_subclass}_IT
7d5893b1 6
6d7c0acc 7Summary: %{_pearname} - Integrated Templates
b673d64c 8Summary(pl.UTF-8): %{_pearname} - zintegrowane szablony
6d7c0acc 9Name: php-pear-%{_pearname}
42759452 10Version: 1.3.0
3a110854 11Release: 2
d919dbb2 12License: Modified BSD
6d7c0acc
PG
13Group: Development/Languages/PHP
14Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
42759452 15# Source0-md5: cbd2fcffd32a39da7b260397156bddbb
3cebb543 16URL: http://pear.php.net/package/HTML_Template_IT/
1f8eb0bd 17BuildRequires: php-pear-PEAR
419ac90a 18BuildRequires: rpm-php-pearprov >= 4.4.2-11
61aeeae9 19BuildRequires: rpmbuild(macros) >= 1.300
6d7c0acc 20Requires: php-pear
2149e041 21Requires: php-pear-PEAR-core
443dc577 22Obsoletes: php-pear-HTML_Template_IT-tests
6d7c0acc
PG
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
dcb079b7
ER
26# included in tests
27%define _noautoreq 'pear(Console_TestListener.php)' 'pear(IT_api_testcase.php)' 'pear(IT_usage_testcase.php)'
28
6d7c0acc
PG
29%description
30HTML_Template_IT: Simple template API. The Isotemplate API is somewhat
31tricky for a beginner although it is the best one you can build.
32template::parse() [phplib template = Isotemplate] requests you to name
33a source and a target where the current block gets parsed into. Source
34and target can be block names or even handler names. This API gives
35you a maximum of fexibility but you always have to know what you do
29570648 36which is quite unusual for PHP skripter like me. I noticed that I do
6d7c0acc
PG
37not any control on which block gets parsed into which one. If all
38blocks are within one file, the script knows how they are nested and
39in which way you have to parse them. IT knows that inner1 is a child
137ca012 40of block2, there's no need to tell him about this. Features:
6d7c0acc
PG
41 - Nested blocks,
42 - Include external file,
43 - Custom tags format (default {mytag}).
44
45HTML_Template_ITX: With this class you get the full power of the
46phplib template class. You may have one file with blocks in it but you
47have as well one main file and multiple files one for each block. This
63f024ec
AG
48is quite useful when you have user configurable websites. Using blocks
49not in the main template allows you to modify some parts of your
50layout easily.
6d7c0acc 51
2205de41 52In PEAR status of this package is: %{_status}.
8df37baa 53
5ceb7876
JR
54%description -l pl.UTF-8
55HTML_Template_IT - proste API do szablonów. API Isotemplate (template
56z phplib) jest nieco zawiłe dla początkujących, ale jest najlepszym
57jakie można uzyskać. template::parse() wymaga nazwania źródła i celu,
58do którego przetworzony będzie aktualny blok. Źródło i cel mogą być
59nazwami bloków lub nawet nazwami funkcji obsługujących. To API daje
60maksymalną elastyczność, ale wymaga zawsze wiedzy, co się robi, co nie
61jest normalnym stanem dla niektórych autorów skryptów PHP, takich jak
62autor tego modułu. Zauważył on, że nie potrzebuje żadnej kontroli,
63który blok zostaje przetworzony na który. Jeżeli wszystkie bloki są w
64jednym pliku, skrypt wie, jak są zagnieżdżone i w jaki sposób powinny
65zostać przetworzone. IT wie, że inner1 jest potomkiem block2, nie ma
66potrzeby podawania mu tych informacji. Możliwości:
67 - zagnieżdżone bloki,
68 - dołączanie zewnętrznych plików,
69 - własny format znaczników (domyślnie {mytag}).
70
71HTML_Template_ITX - ta klasa daje całą siłę klasy szablonów z phplib.
72Można mieć jeden plik z blokami, ale można także mieć jeden główny
73plik i wiele plików zawierających po jednym bloku. Jest to przydatne,
74aby pozwolić użytkownikowi na konfigurowalne serwisy. Przez użycie
75bloków spoza głównego szablonu pozwala się na łatwe modyfikowanie
76niektórych części wyglądu.
137ca012 77
8df37baa
PG
78Ta klasa ma w PEAR status: %{_status}.
79
6d7c0acc 80%prep
419ac90a 81%pear_package_setup
6d7c0acc
PG
82
83%install
84rm -rf $RPM_BUILD_ROOT
419ac90a
ER
85install -d $RPM_BUILD_ROOT%{php_pear_dir}
86%pear_package_install
6d7c0acc
PG
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%files
92%defattr(644,root,root,755)
419ac90a
ER
93%doc install.log
94%{php_pear_dir}/.registry/*.reg
6d7c0acc 95%{php_pear_dir}/%{_class}/%{_subclass}/*.php
This page took 0.100365 seconds and 4 git commands to generate.