Up to [Local Repository] / interchange / code / Filter
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
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.
* Add Stefan's suggested Visibility modification for CodeDef options.
By default the visibility is public.
It wants something like:
codedef:JavaScriptCheck
Will return all public Descriptions.
codedef:JavaScriptCheck:private -- return public and private.
codedef:JavaScriptCheck:private,admin -- return public,private,admin
If Visibility is "with Foo::Bar", it checks to see if $Foo::Bar::VERSION
is true and returns the option if it is.
* Create routine to automatically select Routine for certain type of
CodeDef. Currently there are many separate methods of doing that.
This one prefers local over global, and is called with:
codedef_routine($type, $name);
For instance, codedef_routine('OrderCheck', 'multistate') will
return $Vend::Cfg->{CodeDef}{OrderCheck}{multistate} if it exists,
otherwise returns $Global::CodeDef->{OrderCheck}{multistate}.
* Modify Form.pm to use this for JavaScriptCheck. More will be
added.
* Modify filters to add private Visibility for non-mainstream filters.
* Modify meta editor to use this.
* Add descriptions to filters. Some descriptions for trivial, obsolete, or very complex filters were left commented out to not clutter a filter list with garbage. * Fix codedef:foo options callout to not be case sensitive. * Sort codedef:foo return lists by label.
* The great filter breakout! * All filters are now CodeDef definitions in code/Filter/*. * Besides plain move from Interpolate.pm, changes made to Filter/* include: * Adding/fixing header/license/cvsid line (all files) * Indenting (where needed) * Lowercasing output html (where needed) * Changes to Interpolate.pm: * Removed whole %Filter = ( ... ) I tested everything with the new eg/pcode script, and tried re-starting Interchange and running few filters on test page. Seems OK.
* convert_date filter was returning a valid time even though no time was defined. While this may be desirable behavior for the [convert-date] ITL tag, it is not for a filter.
updated LINUXIA branch to 4.9 sources in order to use it as testbed again
* Add three new filters.
-- encrypt -- encrypts the value against the standard GPG/PGP key
using the standard EncryptProgram.
[filter op=encrypt] String [/filter]
You can encrypt against other keys by passing the ID as an argument:
[filter op=encrypt.23883AEE]
String, to encrypt against different key.
[/filter]
-- linkdecode filter does a decode of URLencoded value so that an
HTML editor encoding an Interchange [area ...] tag doesn't destroy
edited HTML.
-- convert_date filter merely runs convert-date tag on a value, useful
for displaying dates in UI.