loading templates faster
This commit is contained in:
parent
fb6fab4226
commit
4b17c88300
11 changed files with 198 additions and 44 deletions
27
lib/WebGUI/Macro/JavaScript.pm
Normal file
27
lib/WebGUI/Macro/JavaScript.pm
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package WebGUI::Macro::JavaScript;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2004 Plain Black LLC.
|
||||
#-------------------------------------------------------------------
|
||||
# Please read the legal notices (docs/legal.txt) and the license
|
||||
# (docs/license.txt) that came with this distribution before using
|
||||
# this software.
|
||||
#-------------------------------------------------------------------
|
||||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use WebGUI::Macro;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::Style;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my ($script) = WebGUI::Macro::getParams(shift);
|
||||
WebGUI::Style::setScript($script,{type=>'text/javascript'});
|
||||
return "";
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue