动态JavaScript插件和常规的JavaScript代码。
资 源 简 介
The plugin uses groovy syntax to generate javascript code in Grails controllers in response to AJAX requests.
```
//put this at the top
import grails.converters.Javascript
render( {
jQuery("#status").hide();
jQuery("#main").html( g.render( template:"list", model:[list:list]) )
} as Javascript)
```
will render as
jQuery("#status").hide(); jQuery("#main").html( "...rendered template content..." )
Installation
grails install-plugin javascript-converter
Manual
Can be downloaded from downloads section. Here is a direct link http://grails-javascript.googlecode.com/files/manual-0.2.zip
Demo Application
Can be downloaded from downloads section. Here is a direct link http://grails-javascript.googlecode.com/files/javascript-demo-0.2.zip
文 件 列 表
JavascriptGrailsPlugin.groovy
LICENSE
application.properties
grails-app
utils
codecs
JsCodec.groovy
plugin.xml
scripts
_Install.groovy
_Uninstall.groovy
_Upgrade.groovy
src
docs
guide
java
grails
converters
Javascript.java
docs
guide
1. Introduction.gdoc
2. Features.gdoc
3. Examples.gdoc
4. Converter Types.gdoc