-
Notifications
You must be signed in to change notification settings - Fork 2
/
PrototypeGrailsPlugin.groovy
48 lines (37 loc) · 1.35 KB
/
PrototypeGrailsPlugin.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import grails.plugin.prototype.PrototypeProvider
import static org.codehaus.groovy.grails.plugins.web.taglib.JavascriptTagLib.*
class PrototypeGrailsPlugin {
def version = "1.0"
def grailsVersion = "1.4 > *"
def dependsOn = [:]
def pluginExcludes = [
"grails-app/controllers/**/*",
"grails-app/views/**/*"
]
def author = "Rob Fletcher"
def authorEmail = "[email protected]"
def title = "Prototype Grails Plugin"
def description = '''\\
This plugin adds the Prototype, Scriptaculous and Rico JavaScript libraries to
Grails and provides integration of those libraries with Grails' Javascript tags.
'''
def documentation = "http://grails.org/plugin/prototype"
def doWithWebDescriptor = { xml ->
}
def doWithSpring = {
}
def doWithDynamicMethods = { ctx ->
}
def doWithApplicationContext = { applicationContext ->
LIBRARY_MAPPINGS.prototype = ["prototype/prototype"]
LIBRARY_MAPPINGS.scriptaculous = LIBRARY_MAPPINGS.prototype + ["prototype/scriptaculous"]
LIBRARY_MAPPINGS.rico = LIBRARY_MAPPINGS.prototype + ["prototype/rico"]
PROVIDER_MAPPINGS.prototype = PrototypeProvider
PROVIDER_MAPPINGS.scriptaculous = PrototypeProvider
PROVIDER_MAPPINGS.rico = PrototypeProvider
}
def onChange = { event ->
}
def onConfigChange = { event ->
}
}