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