macro help moved into individual files
This commit is contained in:
parent
bfaf66f854
commit
13dee87a18
86 changed files with 1978 additions and 0 deletions
26
lib/WebGUI/Help/Macros.pm
Normal file
26
lib/WebGUI/Help/Macros.pm
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
package WebGUI::Help::Macros;
|
||||
|
||||
use WebGUI::Session;
|
||||
use Data::Dumper;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'macros list' => {
|
||||
title => 'macros list title',
|
||||
body => 'macros list body',
|
||||
related => [ map {
|
||||
$tag = $_;
|
||||
$tag =~ s/^[a-zA-Z]+_//; #Remove initial shortcuts
|
||||
$tag =~ s/([A-Z]+(?![a-z]))/$1 /g; #Separate acronyms
|
||||
$tag =~ s/([a-z])([A-Z])/$1 $2/g; #Separate studly caps
|
||||
$tag = lc $tag;
|
||||
{ tag => $tag,
|
||||
namespace => $_ }
|
||||
}
|
||||
sort values %{ $session{config}{macros} }
|
||||
],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue