Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The javascript engine provides wrappers to make it easier to access JCR and Sling objects from server-side javascript, and also uses a clever EspReader (sorry it's not that ESP) to convert .esp scripts to plain javascript code.

The jsp JSP engine is actually a compiler, so it can be an interesting example if your language needs or can benefit from compiling.

Note: If the script engine you add involves compiling the scripts to Java Class files which are consumed by a classloader, it may be worth it to consider to properly seriliaze access to scripts which are under compilation to prevent paralell compilation and consequential class loading issues. Sling's JSP Engine is based on Jasper from Apache Tomcat and employs such serialization.

Working with bundles

Is there an easy way to update bundles in a running installation during development?

...