removed JavaScript, StyleSheet, and RawHeadTags macros

This commit is contained in:
JT Smith 2006-04-19 19:39:26 +00:00
parent 722a214f80
commit 11385d7957
14 changed files with 28 additions and 277 deletions

View file

@ -1,20 +0,0 @@
package WebGUI::Help::Macro_JavaScript;
our $HELP = {
'java script' => {
title => 'java script title',
body => 'java script body',
fields => [
],
related => [
{
tag => 'macros using',
namespace => 'Macros'
},
]
},
};
1;

View file

@ -1,20 +0,0 @@
package WebGUI::Help::Macro_RawHeadTags;
our $HELP = {
'raw head tags' => {
title => 'raw head tags title',
body => 'raw head tags body',
fields => [
],
related => [
{
tag => 'macros using',
namespace => 'Macros'
},
]
},
};
1;

View file

@ -1,20 +0,0 @@
package WebGUI::Help::Macro_StyleSheet;
our $HELP = {
'style sheet' => {
title => 'style sheet title',
body => 'style sheet body',
fields => [
],
related => [
{
tag => 'macros using',
namespace => 'Macros'
},
]
},
};
1;

View file

@ -1,43 +0,0 @@
package WebGUI::Macro::JavaScript;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2006 Plain Black Corporation.
#-------------------------------------------------------------------
# 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;
=head1 NAME
Package WebGUI::Macro::JavaScript
=head1 DESCRIPTION
This Macro is a wrapper for $session->style->setScript, which puts a script
tag into the head of the current page with the contents of the javascript
found at the url that is passed in.
=head2 process ( url )
=head3 url
URL to the javascript to include in the page's header tags.
=cut
#-------------------------------------------------------------------
sub process {
my $session = shift;
$session->style->setScript(shift,{type=>'text/javascript'});
return undef;
}
1;

View file

@ -1,42 +0,0 @@
package WebGUI::Macro::RawHeadTags;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2006 Plain Black Corporation.
#-------------------------------------------------------------------
# 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;
=head1 NAME
Package WebGUI::Macro::RawHeadTags
=head1 DESCRIPTION
Macro for adding
=head2 process ( tags )
process is a wrapper for $session->style->setRawHeadTags();
=head3 text
Text that will be added to the HEAD tags for this page.
=cut
#-------------------------------------------------------------------
sub process {
my $session = shift;
$session->style->setRawHeadTags(shift);
return "";
}
1;

View file

@ -1,45 +0,0 @@
package WebGUI::Macro::StyleSheet;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2006 Plain Black Corporation.
#-------------------------------------------------------------------
# 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;
=head1 NAME
Package WebGUI::Macro::StyleSheet
=head1 DESCRIPTION
Macro for dynamically adding references to CSS documents to use in this page.
=head2 process ( url )
process is a wrapper around $session->style->setLink().
=head3 url
The URL to the CSS document.
=cut
#-------------------------------------------------------------------
sub process {
my $session = shift;
$session->style->setLink(shift,{
type=>'text/css',
rel=>'stylesheet'
});
return "";
}
1;

View file

@ -1,26 +0,0 @@
package WebGUI::i18n::English::Macro_JavaScript;
our $I18N = {
'macroName' => {
message => q|JavaScript|,
lastUpdated => 1128839022,
},
'java script title' => {
message => q|JavaScript Macro|,
lastUpdated => 1112466408,
},
'java script body' => {
message => q|
<b>&#94;JavaScript();</b><br>
This macro allows you to include javascript in the head section of the page. Just pass in the URL to the javascript file.
<p>
|,
lastUpdated => 1112466919,
},
};
1;

View file

@ -1,27 +0,0 @@
package WebGUI::i18n::English::Macro_RawHeadTags;
our $I18N = {
'macroName' => {
message => q|Raw Head Tags|,
lastUpdated => 1128918979,
},
'raw head tags title' => {
message => q|Raw Head Tags Macro|,
lastUpdated => 1112466408,
},
'raw head tags body' => {
message => q|
<b>&#94;RawHeadTags(<i>"header tags"</i>);</b><br>
This macro allows you to set some arbitrary tags in the head section of the page. Just pass in the text.
<p>
|,
lastUpdated => 1112466919,
},
};
1;

View file

@ -1,27 +0,0 @@
package WebGUI::i18n::English::Macro_StyleSheet;
our $I18N = {
'macroName' => {
message => q|Style Sheet|,
lastUpdated => 1128919083,
},
'style sheet title' => {
message => q|Style Sheet Macro|,
lastUpdated => 1112466408,
},
'style sheet body' => {
message => q|
<b>&#94;StyleSheet();</b><br>
This macro allows you to set a cascading style sheet in the head section of the page. Just pass in the URL to the CSS file.
<p>
|,
lastUpdated => 1112466919,
},
};
1;