Hi,
Rory Douglas schrieb:
Have you installed the ruby scripting bundle - I don't think it's
installed by default in the launchpad app?
That's what I also think is the problem here. The launchpad does not
include the ruby bundle by default. So either you add the ruby
dependency to the launchpad/app project or you deploy it yourself.
To deploy it yourself, just launch sling and enter the scripting/ruby
source folder and do the following:
mvn -P autoInstallBundle clean install
Provided Sling is running on the default port 8080 and root context,
this should install the ruby bundle in Sling. If sling is not running in
the default setup, you have to specify the sling.url property, such as:
mvn -P autoInstallBundle \
-Dsling.url=http://host:post/ctx/system/console \
clean install
Hope this helps.
Regards
Felix
Joshua Oransky wrote:
I tried that one. I get this:
Node dumped by HtmlRendererServlet
Node path: /content/maniatv/gameology
Resource metadata: {sling.resolutionPath=/content/maniatv/gameology}
Node properties
jcr:primaryType: nt:unstructured
I've looked all over for the answer. This doesn't seem to be a topic
explored very much.
-Josh
On Aug 20, 2008, at 12:02 PM, Rory Douglas wrote:
I think the extension you need is .erb (see
org.apache.sling.scripting.ruby.ErbScriptEngineFactory#ERB_SCRIPT_EXTENSION)
Joshua Oransky wrote:
I'm just getting started with Sling. I've played around with the
examples and feel pretty comfortable with the layout.
However, I need to use Ruby as my scripting language. What extension
do I use for a template that uses Ruby code? I tried various
extensions, but nothing works.
Thanks in advance - Josh