Accepting request 295730 from devel:languages:perl:autoupdate
update OBS-URL: https://build.opensuse.org/request/show/295730 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Template-Compiled?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:448e576419040c0a462bac1794c12f2cd177534738d31d850960a4fa2d938e1a
|
||||
size 98871
|
3
HTML-Template-Compiled-1.001.tar.gz
Normal file
3
HTML-Template-Compiled-1.001.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c9befcd9349778bee99443148efef7441ea52ba7efa7ce64faf76b453993d50b
|
||||
size 131540
|
@@ -1,3 +1,123 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 13 16:09:06 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 1.001
|
||||
see /usr/share/doc/packages/perl-HTML-Template-Compiled/Changes
|
||||
|
||||
1.001 Sat May 4 12:49:44 CEST 2013
|
||||
- Regular release, see developer versions for changes
|
||||
|
||||
1.000_006 Fri Jan 25 22:57:24 CET 2013
|
||||
- Minor optimizations for file cache
|
||||
- Remove ::Plugin::DHTML (own distribution)
|
||||
|
||||
1.000_004 Thu Jan 10 00:29:59 CET 2013
|
||||
- New features: added options warnings and line_info
|
||||
|
||||
1.000_003 Mon Dec 31 19:05:54 CET 2012
|
||||
- fix test
|
||||
|
||||
1.000_002 Sat Dec 1 21:06:57 CET 2012
|
||||
- make parallel testing possible
|
||||
- remove ::Plugin::NumberFormat (has its own distribution now)
|
||||
|
||||
1.000_001 Tue Nov 27 19:55:00 CET 2012
|
||||
- Minor optimizations
|
||||
- New Feature: attribute sortby for TMPL_EACH
|
||||
|
||||
1.000 Tue Nov 13 20:45:44 CET 2012
|
||||
- regular release
|
||||
|
||||
0.99_001 Sat Aug 4 17:32:03 CEST 2012
|
||||
- Bugfix: reloading changed includes didn't always work
|
||||
|
||||
0.99 Mon Jul 2 21:48:39 CEST 2012
|
||||
- fixed tests (deprecation in perl 5.17 and Data::TreeDumper prereq)
|
||||
- also see developer version changes
|
||||
|
||||
0.98_003 Sun Jun 10 19:25:15 CEST 2012
|
||||
- removed test cache directory from distribution
|
||||
- added some modules to recommends
|
||||
|
||||
0.98_002 Wed Jun 6 20:43:05 CEST 2012
|
||||
- Workaround for using var names with dollars:
|
||||
local $HTML::Template::Compiled::Compiler::DISABLE_NEW_ALIAS = 1;
|
||||
|
||||
0.98_001 Mon Jun 4 23:53:45 CEST 2012
|
||||
- require perl 5.8.1
|
||||
- Hotfix for include_var and file caching
|
||||
|
||||
0.98 Mon Jun 4 18:18:40 CEST 2012
|
||||
- IMPORTANT: Change: use aliases (alias=..., SET_VAR) via $aliasname.
|
||||
USE_VARS will be removed in the future. Old alias syntax still works
|
||||
for now.
|
||||
|
||||
0.97_006 Sun Jun 3 19:26:50 CEST 2012
|
||||
- new plugin HTML::Template::Compiled::Plugin::NumberFormat
|
||||
|
||||
0.97_005 Sat Jun 2 12:47:06 CEST 2012
|
||||
- New feature: option cache_debug
|
||||
- New feature: TMPL_WRAPPER
|
||||
- Another bugfix for search_path_on_include
|
||||
|
||||
0.97_004 Sun May 20 18:38:32 CEST 2012
|
||||
- Change: Implemented searching the path and search_path_on_include like
|
||||
in HTML::Template (finally) and add an additional value. PLEASE TEST!
|
||||
- Improved file cache performance
|
||||
- Bugfix: old bug with invalid tags in noparse, verbatim, comment
|
||||
- Remove old Storable workaround (0.94_002)
|
||||
|
||||
0.97_001 Thu May 17 14:54:30 CEST 2012
|
||||
- fix HTML::Template::Compiled::Classic: allow every character in template
|
||||
var names (RT 70676)
|
||||
- New option expire_time instead of global HTML::Template::Compiled->ExpireTime
|
||||
- Added loop context vars __even__, __outer__
|
||||
- Change: removed documentation of class methods ->CaseSensitive,
|
||||
->SearchPathOnInclude, ->UseQuery - will be deprecated
|
||||
- Added strict option
|
||||
|
||||
0.97 Tue May 8 19:19:00 CEST 2012
|
||||
- regular release, see changes from dev version below
|
||||
|
||||
0.96_005 Sun May 6 16:24:54 CEST 2012
|
||||
- fix t/25_expr.t number of skip tests
|
||||
|
||||
0.96_004 Sat May 5 15:56:27 CEST 2012
|
||||
- Minor bugfix USE_VARS, module version numbers
|
||||
- Bugfix caching: under certain circumstances some template includes
|
||||
were not added to memory cache and reloaded from file cache very time
|
||||
|
||||
0.96_003 Fri May 4 17:09:19 CEST 2012
|
||||
- Improved Feature: expressions like .path.to.hash{var}
|
||||
|
||||
0.96_002 Sun Apr 22 19:23:33 CEST 2012
|
||||
- Changed/New feature: chomp whitespaces globally or in tags
|
||||
- New feature: SET_VAR (and USE_VARS)
|
||||
|
||||
0.96_001 Sat Apr 21 23:17:59 CEST 2012
|
||||
- New feature: allow expressions like .path.to.hash{var}
|
||||
- Bugfix: allow more than two binary operands in H::T::C::Expr
|
||||
|
||||
0.96 Mon Nov 21 20:37:22 CET 2011
|
||||
- fixed 05_filter.t
|
||||
- fixed t/01_HTML-Template-Compiled.t (problems when test takes longer then
|
||||
cache expiration)
|
||||
|
||||
0.95_003 Sat Nov 12 15:12:02 CET 2011
|
||||
- Bugfix: Reload includes of includes (required change of caching mechanism -
|
||||
please report any issues if you have problems with caching)
|
||||
- New Escape: 'IJSON'
|
||||
- Deprecated the use options 'speed', 'compatible' and 'short'
|
||||
|
||||
0.95_002 Mon Oct 31 21:00:51 CET 2011
|
||||
- HTML::Template Compatibility: lowercase instead of uppercase
|
||||
parameters when case_sensitive 0
|
||||
|
||||
0.95_001 Sun Aug 28 19:02:00 CEST 2011
|
||||
- Bugfix: escape=js escapes backslash now (RT 66463)
|
||||
- Bugfix: H::T::C::Classic ignored case_sensitive (RT 70412)
|
||||
- Added Template::AutoFilter to bench.pl
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 1 10:34:37 UTC 2011 - coolo@opensuse.org
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTML-Template-Compiled (Version 0.95)
|
||||
# spec file for package perl-HTML-Template-Compiled
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,49 +15,66 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-HTML-Template-Compiled
|
||||
Version: 0.95
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Version: 1.001
|
||||
Release: 0
|
||||
%define cpan_name HTML-Template-Compiled
|
||||
Summary: Template System Compiles HTML::Template files to Perl code
|
||||
Url: http://search.cpan.org/dist/HTML-Template-Compiled/
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/HTML-Template-Compiled/
|
||||
Source: http://www.cpan.org/authors/id/T/TI/TINITA/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Build)
|
||||
Recommends: perl(URI::Escape)
|
||||
BuildRequires: perl(Module::Build) >= 0.28
|
||||
BuildRequires: perl(URI::Escape)
|
||||
Requires: perl(URI::Escape)
|
||||
Recommends: perl(Parse::RecDescent)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
HTML::Template::Compiled is a template system which can be used for the
|
||||
HTML::Template manpage templates with almost the same API. It offers more
|
||||
flexible template delimiters, additional tags and features, and by
|
||||
compiling the template into perl code it can run significantly faster in
|
||||
persistent environments such as FastCGI or mod_perl.
|
||||
|
||||
The goal is to offer more features for flexibility but keep the basic
|
||||
syntax as easy as it is.
|
||||
|
||||
Features at a glance:
|
||||
|
||||
* Dot notation for objects, hashes and arrays
|
||||
|
||||
* Use expressions without any disadvantages like those in the
|
||||
HTML::Template::Expr manpage
|
||||
|
||||
* Write escaping plugins and plugins for new tags
|
||||
|
||||
* Alternate delimiters, e.g. '[%if %]' and '<%if %>'
|
||||
|
||||
* Avoid 'global_vars' option by using the 'SET_VAR' tag to create aliases.
|
||||
|
||||
* Tags ELSIF, EACH, WHILE, COMMENT, WRAPPER, SWITCH/CASE, INCLUDE_VAR
|
||||
|
||||
* Chomp newlines/whitespace
|
||||
|
||||
For a quick reference, see the HTML::Template::Compiled::Reference manpage.
|
||||
|
||||
As the basic features work like in the HTML::Template manpage, please get
|
||||
familiar with this documentation before.
|
||||
familiar with its documentation before.
|
||||
|
||||
HTML::Template::Compiled (HTC) does not implement all features of the
|
||||
HTML::Template manpage, and it has got some additional features which are
|
||||
explained below: the "ADDITIONAL FEATURES" manpage
|
||||
HTML::Template manpage (see the "COMPATIBILITY" manpage), and it has got
|
||||
some additional features which are explained below: the "ADDITIONAL
|
||||
FEATURES" manpage
|
||||
|
||||
HTML::Template::Compiled (HTC) is a template system which uses the same
|
||||
template syntax as HTML::Template and the same perl API (see the
|
||||
"COMPATIBILITY" manpage for what you need to know if you want (almost) the
|
||||
same behaviour). Internally it works different, because it turns the
|
||||
template into perl code, and once that is done, generating the output is
|
||||
much faster than with HTML::Template (3-7 times at the moment, depending on
|
||||
the options you use (see the "BENCHMARKS" manpage for some examples), when
|
||||
both are run with loop_context_vars 0. It also can generate perl files so
|
||||
that the next time the template is loaded it doesn't have to be parsed
|
||||
again. The best performance gain is probably reached in applications
|
||||
running under mod_perl, for example.
|
||||
|
||||
If you don't use any caching HTC will be very slow, slower than TT. Also
|
||||
with file caching but without memory caching it's the slowest templating
|
||||
module I know. With memory caching, though, it is one of the fastest, even
|
||||
faster sometimes (depending on options and template size) than C modules.
|
||||
See the "BENCHMARKS" manpage for some examples on the performance. Since it
|
||||
depends highly on the options used and on the template size there can be no
|
||||
general statement on its performance.
|
||||
|
||||
You might want to use the HTML::Template::Compiled::Lazy manpage for CGI
|
||||
environments as it doesn't parse the template before calling output. But
|
||||
@@ -70,7 +87,7 @@ memory. If you are on mod_perl, and have a lot of templates, you should
|
||||
preload them at server startup to be sure that it is in shared memory. At
|
||||
the moment HTC is not fully tested for keeping all data in shared memory
|
||||
(e.g. when a copy-on-write occurs), but it seems like it's behaving well.
|
||||
For preloading you can now use HTML::Template::Compiled->preload($dir).
|
||||
For preloading you can use HTML::Template::Compiled->preload($cache_dir).
|
||||
|
||||
Generating code, writing it on disk and later eval() it can open security
|
||||
holes, for example if you have more users on the same machine that can
|
||||
@@ -102,9 +119,6 @@ passing for HTC. See the "RESOURCES" manpage for current information.
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples README
|
||||
|
Reference in New Issue
Block a user