lib/druid/javascript_framework_facade.rb in druid-ts-1.1.3 vs lib/druid/javascript_framework_facade.rb in druid-ts-1.1.4
- old
+ new
@@ -1,7 +1,8 @@
require 'druid/javascript/jquery'
require 'druid/javascript/prototype'
+require 'druid/javascript/yui'
module Druid
#
# Provide hooks into different common Javascript Frameworks.
# Currently this module only supports jQuery and Prototype but it
@@ -54,10 +55,11 @@
private
def initialize_script_builder
@builder = {
:jquery => Druid::Javascript::JQuery,
- :prototype => Druid::Javascript::Prototype
+ :prototype => Druid::Javascript::Prototype,
+ :yui => Druid::Javascript::YUI
}
end
def unknown_framework(framework)
"You specified the Javascript framework #{framework} and it is unknow to the system"