|
CajaCajole
"Cajoling" is what we call the process of turning Caja input into JavaScript.
Obtain a Caja buildTo cajole your input, first build Caja from source. Download. The source is in SVN. We assume you have downloaded it to a directory called: ./google-caja Compile. Ensure you have version 1.7 of Apache Ant. Then compile as follows: cd google-caja/src ant jars You should now have a directory called ant-jars, relative to your current directory. Go back to your google-caja directory: cd .. Cajole your inputOpenSocial. To cajole an OpenSocial gadget, do the following: bin/cajole_gadget -i <sourceGadgetUrl> -o <targetGadgetFile> where: Plain HTML. To cajole a plain HTML snippet, do the following: bin/cajole_html -i <inputHtmlUrl> -o <targetJsFile> where:
|
Sign in to add a comment