]> mj.ucw.cz Git - temple.git/log
temple.git
2 years agotemple -e master
Martin Mares [Tue, 9 Nov 2021 10:30:15 +0000 (11:30 +0100)]
temple -e

5 years agoInput and output should be in UTF-8
Martin Mares [Wed, 23 Jan 2019 16:07:31 +0000 (17:07 +0100)]
Input and output should be in UTF-8

5 years ago"use lib '.'" for compatibility with recent Perls
Martin Mares [Mon, 14 Jan 2019 21:25:35 +0000 (22:25 +0100)]
"use lib '.'" for compatibility with recent Perls

8 years ago@(...) follows conditions properly
Martin Mares [Mon, 4 Apr 2016 22:12:08 +0000 (00:12 +0200)]
@(...) follows conditions properly

8 years agoEscaped curly braces in regexes
Tomáš Maleček [Wed, 25 Nov 2015 10:29:55 +0000 (11:29 +0100)]
Escaped curly braces in regexes

Warning "Unescaped left brace in regex is deprecated" added in
Perl 5.22.0 is not triggered anymore.

8 years agoAdded optional tilde expansion
Martin Mares [Wed, 12 Aug 2015 10:32:04 +0000 (12:32 +0200)]
Added optional tilde expansion

Tilde is often used as a non-breaking space, but what exactly that
means depends on context. Therefore, a tilde expands to itself by
default and the expansion can be changed via $T::tilde.

Inspired by a patch from KSP repository.

8 years agoUpdated (c) year
Martin Mares [Wed, 12 Aug 2015 10:27:37 +0000 (12:27 +0200)]
Updated (c) year

8 years agoInline function calls @f(...) now recognize quoted string arguments
Martin Mares [Wed, 12 Aug 2015 10:22:34 +0000 (12:22 +0200)]
Inline function calls @f(...) now recognize quoted string arguments

@f(":-(") does not fail any longer.

Based on a patch from KSP repository by Jirka Setnicka.

8 years agoMerge branch 'master' of git+ssh://git.ucw.cz/home/mj/GIT/temple
Martin Mares [Wed, 12 Aug 2015 10:21:58 +0000 (12:21 +0200)]
Merge branch 'master' of git+ssh://git.ucw.cz/home/mj/GIT/temple

8 years agoAdded "set" function for setting of template variables from outside
Martin Mares [Wed, 12 Aug 2015 10:20:33 +0000 (12:20 +0200)]
Added "set" function for setting of template variables from outside

This is basically an easy way to get around strictness warnings.

9 years agoAdded T::arg() which allows to access template arguments in Perl code
Martin Mares [Mon, 30 Mar 2015 19:43:33 +0000 (21:43 +0200)]
Added T::arg() which allows to access template arguments in Perl code

11 years agoAvoid reporting a single error multiple times
Martin Mares [Fri, 12 Oct 2012 20:58:29 +0000 (22:58 +0200)]
Avoid reporting a single error multiple times

One day, we might want to get a proper backtrace, but in the meantime
it is easier to avoid wrapping a single error in several layers of
line number info, which are often wrong, as we do not clear the position
stack in error paths.

11 years agoWhitespace fixes
Martin Mares [Fri, 12 Oct 2012 20:46:21 +0000 (22:46 +0200)]
Whitespace fixes

Suggested by Tomas Malecek

11 years agoRewritten error handling, so that proper line numbers are reported
Martin Mares [Fri, 12 Oct 2012 20:43:44 +0000 (22:43 +0200)]
Rewritten error handling, so that proper line numbers are reported

12 years agoRemove surplus hashbangs.
Martin Mares [Sat, 29 Oct 2011 16:30:50 +0000 (18:30 +0200)]
Remove surplus hashbangs.

13 years agoThe argument of UCW::Temple::start() is no longer mandatory
Martin Mares [Fri, 11 Feb 2011 15:26:21 +0000 (16:26 +0100)]
The argument of UCW::Temple::start() is no longer mandatory

13 years agoAdded tracking of dependencies from MJ's web
Martin Mares [Fri, 11 Feb 2011 15:23:33 +0000 (16:23 +0100)]
Added tracking of dependencies from MJ's web

It is up to external modules to read the list of dependencies
and process it somehow.

13 years agoUCW::Temple: @@ does not creep into if'ed out blocks
Martin Mares [Fri, 11 Feb 2011 15:12:39 +0000 (16:12 +0100)]
UCW::Temple: @@ does not creep into if'ed out blocks

13 years agoSquash a warning
Martin Mares [Tue, 5 Oct 2010 17:02:36 +0000 (19:02 +0200)]
Squash a warning

Thanks to Mosquitoe for the patch.

13 years agoFixed calling of multi-parameter functions
Martin Mares [Tue, 5 Oct 2010 17:02:17 +0000 (19:02 +0200)]
Fixed calling of multi-parameter functions

Thanks to Mosquitoe for the fix.

13 years agoUCW::Temple::CGI: Added html_template().
Martin Mares [Tue, 20 Jul 2010 12:14:18 +0000 (14:14 +0200)]
UCW::Temple::CGI: Added html_template().

13 years agoAdded a couple of comments on the new features
Martin Mares [Wed, 18 Aug 2010 15:31:56 +0000 (17:31 +0200)]
Added a couple of comments on the new features

13 years agotemple driver script: updated call of start()
Martin Mares [Wed, 18 Aug 2010 15:31:35 +0000 (17:31 +0200)]
temple driver script: updated call of start()

13 years agoUCW::Temple::CGI: Written
Martin Mares [Mon, 19 Jul 2010 18:47:46 +0000 (20:47 +0200)]
UCW::Temple::CGI: Written

13 years agoUCW::Temple: Support substitution of named arguments via @(name)
Martin Mares [Mon, 19 Jul 2010 16:11:32 +0000 (18:11 +0200)]
UCW::Temple: Support substitution of named arguments via @(name)

15 years agoAdded an example and Temple::Links from MJ's home page.
Martin Mares [Sun, 5 Oct 2008 19:37:05 +0000 (21:37 +0200)]
Added an example and Temple::Links from MJ's home page.

15 years agoUpdated the test cases.
Martin Mares [Thu, 2 Oct 2008 19:29:31 +0000 (21:29 +0200)]
Updated the test cases.

15 years agoout(): do not forget to return undef
Martin Mares [Thu, 2 Oct 2008 19:28:42 +0000 (21:28 +0200)]
out(): do not forget to return undef

15 years agoReplace all outputs by an overridable call to `out'.
Martin Mares [Thu, 2 Oct 2008 19:27:19 +0000 (21:27 +0200)]
Replace all outputs by an overridable call to `out'.

15 years agoWhen the function called via @f(...) returns anything, it is printed.
Martin Mares [Thu, 2 Oct 2008 19:20:54 +0000 (21:20 +0200)]
When the function called via @f(...) returns anything, it is printed.

Beware, this is an incompatible change!

All built-in functions have been updated to return undef.

15 years agoAh those parantheses...
Martin Mares [Thu, 2 Oct 2008 19:18:45 +0000 (21:18 +0200)]
Ah those parantheses...

15 years agoMoved template variables and functions to a separate package.
Martin Mares [Thu, 2 Oct 2008 19:17:04 +0000 (21:17 +0200)]
Moved template variables and functions to a separate package.

15 years agoThe previous fix was wrong.
Martin Mares [Wed, 1 Oct 2008 19:58:52 +0000 (21:58 +0200)]
The previous fix was wrong.

15 years agoFixed an escape.
Martin Mares [Wed, 1 Oct 2008 19:57:17 +0000 (21:57 +0200)]
Fixed an escape.

19 years agoOptions.
Martin Mares [Sun, 26 Sep 2004 12:39:29 +0000 (12:39 +0000)]
Options.

19 years agoConverted to Perl module.
Martin Mares [Sun, 26 Sep 2004 12:28:45 +0000 (12:28 +0000)]
Converted to Perl module.

19 years agoTesting.
Martin Mares [Wed, 22 Sep 2004 19:16:36 +0000 (19:16 +0000)]
Testing.

19 years agoFirst version.
Martin Mares [Wed, 22 Sep 2004 19:00:46 +0000 (19:00 +0000)]
First version.