]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: %{_pearname} - Integrated Templates |
137ca012 | 8 | Summary(pl): %{_pearname} - zintegrowane szablony |
6d7c0acc | 9 | Name: php-pear-%{_pearname} |
5274afe2 | 10 | Version: 1.2.1 |
eae668e5 | 11 | Release: 1 |
6d7c0acc PG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
5274afe2 | 15 | # Source0-md5: 1d4bf6f13ed4de43a0f837c0de9f2d7a |
3cebb543 | 16 | URL: http://pear.php.net/package/HTML_Template_IT/ |
1f8eb0bd | 17 | BuildRequires: php-pear-PEAR |
419ac90a | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
61aeeae9 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
6d7c0acc | 20 | Requires: php-pear |
2149e041 | 21 | Requires: php-pear-PEAR-core |
6d7c0acc PG |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
dcb079b7 ER |
25 | # included in tests |
26 | %define _noautoreq 'pear(Console_TestListener.php)' 'pear(IT_api_testcase.php)' 'pear(IT_usage_testcase.php)' | |
27 | ||
6d7c0acc PG |
28 | %description |
29 | HTML_Template_IT: Simple template API. The Isotemplate API is somewhat | |
30 | tricky for a beginner although it is the best one you can build. | |
31 | template::parse() [phplib template = Isotemplate] requests you to name | |
32 | a source and a target where the current block gets parsed into. Source | |
33 | and target can be block names or even handler names. This API gives | |
34 | you a maximum of fexibility but you always have to know what you do | |
29570648 | 35 | which is quite unusual for PHP skripter like me. I noticed that I do |
6d7c0acc PG |
36 | not any control on which block gets parsed into which one. If all |
37 | blocks are within one file, the script knows how they are nested and | |
38 | in which way you have to parse them. IT knows that inner1 is a child | |
137ca012 | 39 | of block2, there's no need to tell him about this. Features: |
6d7c0acc PG |
40 | - Nested blocks, |
41 | - Include external file, | |
42 | - Custom tags format (default {mytag}). | |
43 | ||
44 | HTML_Template_ITX: With this class you get the full power of the | |
45 | phplib template class. You may have one file with blocks in it but you | |
46 | have as well one main file and multiple files one for each block. This | |
63f024ec AG |
47 | is quite useful when you have user configurable websites. Using blocks |
48 | not in the main template allows you to modify some parts of your | |
49 | layout easily. | |
6d7c0acc | 50 | |
2205de41 | 51 | In PEAR status of this package is: %{_status}. |
8df37baa | 52 | |
137ca012 JB |
53 | %description -l pl |
54 |