[Jifty-commit] r5128 - in jifty/branches/jquery: share/plugins/Jifty/Plugin/Prototypism t/TestApp-JiftyJS2 t/TestApp-JiftyJS2/bin t/TestApp-JiftyJS2/doc t/TestApp-JiftyJS2/etc t/TestApp-JiftyJS2/log t/TestApp-JiftyJS2/var
Jifty commits
jifty-commit at lists.jifty.org
Sat Feb 16 22:52:27 EST 2008
Author: gugod
Date: Sat Feb 16 22:52:26 2008
New Revision: 5128
Added:
jifty/branches/jquery/lib/Jifty/Plugin/Prototypism.pm
jifty/branches/jquery/share/plugins/Jifty/Plugin/Prototypism/
jifty/branches/jquery/t/TestApp-JiftyJS2/
jifty/branches/jquery/t/TestApp-JiftyJS2/Makefile.PL
jifty/branches/jquery/t/TestApp-JiftyJS2/bin/
jifty/branches/jquery/t/TestApp-JiftyJS2/bin/jifty (contents, props changed)
jifty/branches/jquery/t/TestApp-JiftyJS2/doc/
jifty/branches/jquery/t/TestApp-JiftyJS2/etc/
jifty/branches/jquery/t/TestApp-JiftyJS2/etc/config.yml
jifty/branches/jquery/t/TestApp-JiftyJS2/lib (contents, props changed)
jifty/branches/jquery/t/TestApp-JiftyJS2/log/
jifty/branches/jquery/t/TestApp-JiftyJS2/share (contents, props changed)
jifty/branches/jquery/t/TestApp-JiftyJS2/t (contents, props changed)
jifty/branches/jquery/t/TestApp-JiftyJS2/var/
Log:
Add a Prototypism plugin. That include prototype.js and scriptaculous.js.
May also include another jifty.js that defines Jifty.Effect classes
with scriptaculous effects.
Added: jifty/branches/jquery/lib/Jifty/Plugin/Prototypism.pm
==============================================================================
--- (empty file)
+++ jifty/branches/jquery/lib/Jifty/Plugin/Prototypism.pm Sat Feb 16 22:52:26 2008
@@ -0,0 +1,41 @@
+use strict;
+use warnings;
+
+package Jifty::Plugin::Prototypism;
+use base 'Jifty::Plugin';
+
+=head1 NAME
+
+Jifty::Plugin::Prototypism
+
+=head1 SYNOPSIS
+
+# In your jifty config.yml under the framework section:
+
+ Plugins:
+ - Prototypism
+ cdn: 'http://yourcdn.for.static.prefix/'
+
+=cut
+
+__PACKAGE__->mk_accessors(qw(cdn));
+
+sub init {
+ my $self = shift;
+ return if $self->_pre_init;
+
+ my %opt = @_;
+ $self->cdn( $opt{ cdn } || '' );
+ my @js = qw(
+ prototype
+ scriptaculous/builder
+ scriptaculous/effects
+ scriptaculous/controls
+ );
+
+ Jifty->web->add_javascript( "prototypism/$_.js" ) for @js;
+
+}
+
+1;
+
Added: jifty/branches/jquery/t/TestApp-JiftyJS2/Makefile.PL
==============================================================================
--- (empty file)
+++ jifty/branches/jquery/t/TestApp-JiftyJS2/Makefile.PL Sat Feb 16 22:52:26 2008
@@ -0,0 +1,7 @@
+use inc::Module::Install;
+
+name 'TestApp::JiftyJS/';
+version '0.01';
+requires 'Jifty' => '0.70824';
+
+WriteAll;
Added: jifty/branches/jquery/t/TestApp-JiftyJS2/bin/jifty
==============================================================================
--- (empty file)
+++ jifty/branches/jquery/t/TestApp-JiftyJS2/bin/jifty Sat Feb 16 22:52:26 2008
@@ -0,0 +1,11 @@
+#!/usr/bin/env perl
+use warnings;
+use strict;
+use File::Basename qw(dirname);
+use UNIVERSAL::require;
+
+use Jifty;
+use Jifty::Script;
+
+local $SIG{INT} = sub { warn "Stopped\n"; exit; };
+Jifty::Script->dispatch();
Added: jifty/branches/jquery/t/TestApp-JiftyJS2/etc/config.yml
==============================================================================
--- (empty file)
+++ jifty/branches/jquery/t/TestApp-JiftyJS2/etc/config.yml Sat Feb 16 22:52:26 2008
@@ -0,0 +1,70 @@
+---
+framework:
+ AdminMode: 1
+ ApplicationClass: TestApp::JiftyJS
+ ApplicationName: TestApp::JiftyJS
+ ApplicationUUID: F43CA57E-A4BE-11DC-A07C-465A83BE23AB
+ ConfigFileVersion: 3
+ Database:
+ CheckSchema: 1
+ Database: testapp_jiftyjs
+ Driver: SQLite
+ Host: localhost
+ Password: ''
+ RecordBaseClass: Jifty::DBI::Record::Cachable
+ User: ''
+ Version: 0.0.1
+ DevelMode: 1
+ L10N:
+ PoDir: share/po
+ AllowedLang:
+ - en
+ LogLevel: INFO
+ Mailer: Sendmail
+ MailerArgs: []
+
+ Plugins:
+ - Prototypism: {}
+ -
+ LetMe: {}
+
+ -
+ SkeletonApp: {}
+
+ -
+ REST: {}
+
+ -
+ Halo: {}
+
+ -
+ ErrorTemplates: {}
+
+ -
+ OnlineDocs: {}
+
+ -
+ CompressedCSSandJS: { js: 0 }
+
+ -
+ AdminUI: {}
+
+ PubSub:
+ Backend: Memcached
+ Enable: ~
+ SkipAccessControl: 0
+ TemplateClass: TestApp::JiftyJS::View
+ Web:
+ BaseURL: http://localhost
+ DataDir: var/mason
+ Globals: []
+
+ MasonConfig:
+ autoflush: 0
+ default_escape_flags: h
+ error_format: text
+ error_mode: fatal
+ Port: 8888
+ ServeStaticFiles: 1
+ StaticRoot: share/web/static
+ TemplateRoot: share/web/templates
Added: jifty/branches/jquery/t/TestApp-JiftyJS2/lib
==============================================================================
--- (empty file)
+++ jifty/branches/jquery/t/TestApp-JiftyJS2/lib Sat Feb 16 22:52:26 2008
@@ -0,0 +1 @@
+link ../TestApp-JiftyJS/lib
\ No newline at end of file
Added: jifty/branches/jquery/t/TestApp-JiftyJS2/share
==============================================================================
--- (empty file)
+++ jifty/branches/jquery/t/TestApp-JiftyJS2/share Sat Feb 16 22:52:26 2008
@@ -0,0 +1 @@
+link ../TestApp-JiftyJS/share
\ No newline at end of file
Added: jifty/branches/jquery/t/TestApp-JiftyJS2/t
==============================================================================
--- (empty file)
+++ jifty/branches/jquery/t/TestApp-JiftyJS2/t Sat Feb 16 22:52:26 2008
@@ -0,0 +1 @@
+link ../TestApp-JiftyJS/t
\ No newline at end of file
More information about the Jifty-commit
mailing list