Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item14237: Added 'perl' and 'legacy' spec formats.
'legacy' is for the Foswiki 2.x style .spec format. Currently parsed but not completely supported. Compatibility is not guarantted though the parser was trying to resemble the LoadSpec.pm code as much as possible. 'perl' is for perl code format where it'd be possible for spec writer to write any Perl code which would then be inserted into a sub body and called. Sub return value is supposed to be a list of spec items. - Made Foswiki::Config::_getSubHash a public method.
- Loading branch information
Showing
11 changed files
with
788 additions
and
21 deletions.
There are no files selected for viewing
16 changes: 13 additions & 3 deletions
16
EmptyExtension/lib/Foswiki/Extension/EmptyExtension/Config.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# ---+ Extensions | ||
# ---++ %$MODULE% | ||
1; | ||
#!perl | ||
my @f = </etc/*>; | ||
|
||
( | ||
-section => "Extensions" => [ | ||
-section => "EmptyExtension" => [ | ||
'EmpyExt.FileList' => [ | ||
-default => \@f, | ||
], | ||
], | ||
], | ||
); | ||
# vim: ft=perl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.