Search code examples
google-caja

google caja - run from command line


I've followed the installation steps described here.
Now they say - "To run the Cajoler from a command-line, use the bin/cajole_html script.", but there is no file cajole_html there. (I have checked out the latest source code from their svn repo, and the build went successfully)
And basically the same thing is described here, look for Setting Up Caja.

  1. I'm looking for a way to run it from the command line like this:
    bin/cajole_html -i <htmlInputFile> -o <outputTarget>

  2. What I actually need is to know if the javascript is "dangerous" or not. I don't really need to cajole html/css, only js.


Solution

  • That page is somewhat out of date; Caja is now a purely client-side library. See

    https://developers.google.com/caja/

    and specifically

    https://developers.google.com/caja/docs/gettingstarted/

    for getting started.