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
renderer: | |
traits: | |
- TT | |
PRE_PROCESS: 'site/shared/base.tt' | |
WRAPPER: 'site/wrapper.tt' | |
TEMPLATE_EXTENSION: '.tt' | |
INCLUDE_PATH: '__path_to(root)__' | |
stash: | |
page: | |
layout: 'html' |
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
renderer: | |
traits: | |
- TT | |
PRE_PROCESS: 'site/shared/base.tt' | |
WRAPPER: 'site/wrapper.tt' | |
TEMPLATE_EXTENSION: '.tt' | |
INCLUDE_PATH: '__path_to(root)__' | |
stash: | |
page: | |
layout: 'html' |
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
package MyApp; | |
use Moose; | |
with 'MooseX::Role::Environment'; | |
=head1 SYNOPSIS | |
Simple usage! After you have the default 'myapp.yml', go nuts (look at http://gist.github.com/198143) |
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
diff --git a/src/editor/js/simple-editor.js b/src/editor/js/simple-editor.js | |
index 4660093..c525290 100644 | |
--- a/src/editor/js/simple-editor.js | |
+++ b/src/editor/js/simple-editor.js | |
@@ -4609,10 +4609,8 @@ var Dom = YAHOO.util.Dom, | |
html = html.replace(/\t/gi, ' '); //Repl | |
} | |
//Removing Script Tags from the Editor | |
- html = html.replace(/<script([^>]*)>/gi, '<bad>'); | |
- html = html.replace(/<\/script([^>]*)>/gi, '</bad>'); |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>Editor Test Suite</title> | |
<link rel="stylesheet" type="text/css" href="../../../build/reset-fonts-grids/reset-fonts-grids.css"> | |
<link type="text/css" rel="stylesheet" href="../../../build/logger/assets/logger.css"> | |
<link type="text/css" rel="stylesheet" href="../../../build/yuitest/assets/testlogger.css"> | |
<link rel="stylesheet" type="text/css" href="../../../build/container/assets/skins/sam/container.css"> |
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
(function() { | |
YAHOO.widget.TrustingEditor = function(el, attrs) { | |
YAHOO.widget.TrustingEditor.superclass.constructor.call(this, el, attrs ); | |
}; | |
YAHOO.extend(YAHOO.widget.TrustingEditor, YAHOO.widget.Editor, { | |
_cleanIncomingHTML: function(html) { | |
html = html.replace(/<script([^>]*)>/gi, '<YUI_SCRIPT$1>'); | |
html = html.replace(/<\/script([^>]*)>/gi, '</YUI_SCRIPT>'); | |
html = YAHOO.widget.TrustingEditor.superclass._cleanIncomingHTML.call(this, html); | |
html = html.replace(/<YUI_SCRIPT([^>]*)>/gi, '<script$1>'); |
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
use Sultan::App; | |
# The sultan app is the entire container | |
my $app = Sultan::App->new_with_config; | |
# A site is basically a rendering target | |
my $site = $app->site('Cold Hard Code'); | |
# A set can be defined at the application or at the site level. | |
# Assets can belong to one or many sets, and the set determines how that | |
# asset is arranged with other assets, etc. It doesn't define any |
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
package PhotoVote::Model::Facebook; | |
use Moose; | |
use WWW::Facebook::API; | |
extends 'Catalyst::Model'; | |
with 'Catalyst::Component::InstancePerContext'; | |
has 'appid' => ( |
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
package MyApp::Types; | |
use DateTime; | |
use MooseX::Types -declare => [qw( | |
DateTimeAfterToday | |
)]; | |
# Dates | |
subtype DateTimeAfterToday, | |
as 'DateTime', |
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
use Test::More; | |
use DateTime; | |
use MyApp::Types; | |
# We get a method for returning all defined types | |
foreach my $type ( MyApp::Types->type_names ) { | |
# Do we have a main::test_Whatever? | |
my $code = __PACKAGE__->can("test_$type"); | |
if ( $code ) { |