Up to [Local Repository] / interchange / code / UserTag
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
replace pathetic regex usage with simple code
added scratch option to save returned content into a scratch variable instead of returning it, justification: [get-url] doesn't work inside of [perl] and binary content might get mangled by the parser
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
Big copyright and version number update to prepare for 5.3.2 release.
Header/license fix or Version update+minor formatting fix, or both
- header/license fix - moved docs to xmldocs
* Add Jonathan Clark's suggested timeout set, with ability to read time strings like timeout="1 minute". * Add standard interhange form parameter, i.e. don't require urlencode of content for post. [get-url method=POST form=| foo=bar buz=baz boo=The red's the thing. |] Still accepts content="foo=bar&buz=baz&boo=the%20big%20red%27s%20the%20one". * Handle lower-case method names. * Don't set content() unless a POST or PUT.
Add user option to specify useragent
Added functionality to the get-url usertag: * set content-type * send username/password for authorization * send actual content * send that content through a method of your choice (get, post, put, etc) * etc..
updated LINUXIA branch to 4.9 sources in order to use it as testbed again
improved inline documentation in order to be able to view it with pod2... tools and allow automatic processing fixed some errors
* Prevent File::Copy runtime include of File::Basename from causing safe problems. * Prevent get_url runtime include of LWP, so can use in $Tag. * Add var_exclude option to history_scan, so that certain variables can be expunged from the form values. Used to rewrite toggle/collapse/expand parameters for trees.
* The great tag breakout!
* Almost all tags are now UserTag definitions. The only exceptions
are:
and bounce goto if label or unless
* New TagDir directive (default is VENDROOT/code) sets the
directory (or directories) which are searched for code definitions
set by UserTag and CodeDef.
* New TagGroup directive establishes groups of ITL tags which can
be included.
TagGroup :crufty "banner default ecml html_table onfly sql"
The default groups include :core, which contains all of the
ITL tags defined in 4.8/early 4.9. The groups are defined
in $Vend::Cfg::StdTags and can be undefined if desired
with "TagGroup :group".
* New TagInclude directive allows inclusion of tags (or groups
of tags). If a tag is defined as a core tag (with a .coretag
or .tag or .ct extension) and is not included, it will not
be compiled and placed in the tag map. This is for all catalogs,
so if *any* catalog uses a tag it must be included.
Examples:
# Include the base tags
TagInclude :core
# Not the commerce tags
TagInclude !:commerce
# But make sure item-list is included even though
# it is in :commerce
TagInclude item-list
## Double negatives are honored
TagGroup :foo "bar !baz buz"
## With the group above, the below is equivalent
## to TagInclude !bar baz !buz
TagInclude !:foo
* New CodeDef directive allows the setting of filters,
order checks, FormAction, ActionMap, ItemAction,
and LocaleChange.
## filters
CodeDef mixedcase Filter
CodeDef mixedcase Routine <<EOR
sub {
my $val = shift;
## [filter mixedcase]mixed case[/filter]
## outputs "MiXeD CaSe"
$val =~ s/(.)(.)/\u$1\l$2/g;
return $val;
}
EOR
## order checks
CodeDef mixedcase OrderCheck
CodeDef foo Routine <<EOR
sub {
my ($ref, $var, $val) = @_;
return (1,$var) if $val eq 'bar';
return (0,$var, "foo must be bar");
}
EOR
All work in catalog.cfg; LocaleChange and ItemAction are not
global. FormAction, ActionMap, and ItemAction directives
are equivalent to their CodeDef equivalents.