Modified: websites/production/camel/content/book-languages-appendix.html
==============================================================================
--- websites/production/camel/content/book-languages-appendix.html (original)
+++ websites/production/camel/content/book-languages-appendix.html Thu Jul 10 
08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -580,7 +581,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="BookLanguagesAppendix-Loadingscriptfromexternalresource.3">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="BookLanguagesAppendix-Dependencies.8">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="BookLanguagesAppendix-Howtogettheresultfrommultiplestatementsscript">How to 
get the result from multiple statements script</h3><p><strong>Available as of 
Camel 2.14</strong></p><p>As the scripteengine evale method just return a Null 
if it runs a multiple statments script. Camel now look up the value of script 
result by using the key of "result" from the value set. If you have multiple 
statements script, you need to make sure you set the value of result variable 
as the script return value.</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="BookLanguagesAppendix-Dependencies.8">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;
@@ -659,7 +666,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="BookLanguagesAppendix-Loadingscriptfromexternalresource.4">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="BookLanguagesAppendix-Dependencies.9">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="BookLanguagesAppendix-Howtogettheresultfrommultiplestatementsscript.1">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="BookLanguagesAppendix-Dependencies.9">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;
@@ -741,7 +754,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="BookLanguagesAppendix-Loadingscriptfromexternalresource.5">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="BookLanguagesAppendix-Dependencies.10">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="BookLanguagesAppendix-Howtogettheresultfrommultiplestatementsscript.2">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="BookLanguagesAppendix-Dependencies.10">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;
@@ -795,7 +814,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="BookLanguagesAppendix-Loadingscriptfromexternalresource.6">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="BookLanguagesAppendix-Dependencies.11">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="BookLanguagesAppendix-Howtogettheresultfrommultiplestatementsscript.3">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="BookLanguagesAppendix-Dependencies.11">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;
@@ -877,7 +902,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="BookLanguagesAppendix-Loadingscriptfromexternalresource.7">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="BookLanguagesAppendix-Dependencies.12">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="BookLanguagesAppendix-Howtogettheresultfrommultiplestatementsscript.4">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="BookLanguagesAppendix-Dependencies.12">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;
@@ -929,7 +960,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="BookLanguagesAppendix-Loadingscriptfromexternalresource.8">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="BookLanguagesAppendix-Dependencies.13">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="BookLanguagesAppendix-Howtogettheresultfrommultiplestatementsscript.5">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="BookLanguagesAppendix-Dependencies.13">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;
@@ -1011,7 +1048,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="BookLanguagesAppendix-Loadingscriptfromexternalresource.9">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="BookLanguagesAppendix-Dependencies.14">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="BookLanguagesAppendix-Howtogettheresultfrommultiplestatementsscript.6">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="BookLanguagesAppendix-Dependencies.14">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/groovy.html
==============================================================================
--- websites/production/camel/content/groovy.html (original)
+++ websites/production/camel/content/groovy.html Thu Jul 10 08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -132,7 +133,13 @@ public void testArgumentsExample() throw
 </div></div><h3 id="Groovy-Loadingscriptfromexternalresource">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 id="Groovy-Dependencies">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 id="Groovy-Howtogettheresultfrommultiplestatementsscript">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 id="Groovy-Dependencies">Dependencies</h3><p>To 
use scripting languages in your camel routes you need to add the a dependency 
on <strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/javascript.html
==============================================================================
--- websites/production/camel/content/javascript.html (original)
+++ websites/production/camel/content/javascript.html Thu Jul 10 08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -160,7 +161,13 @@ public void testArgumentsExample() throw
 </div></div><h3 id="JavaScript-Loadingscriptfromexternalresource">Loading 
script from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 id="JavaScript-Dependencies">Dependencies</h3><p>To use 
scripting languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="JavaScript-Howtogettheresultfrommultiplestatementsscript">How to get the 
result from multiple statements script</h3><p><strong>Available as of Camel 
2.14</strong></p><p>As the scripteengine evale method just return a Null if it 
runs a multiple statments script. Camel now look up the value of script result 
by using the key of "result" from the value set. If you have multiple 
statements script, you need to make sure you set the value of result variable 
as the script return value.</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="JavaScript-Dependencies">Dependencies</h3><p>To use scripting languages in 
your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/php.html
==============================================================================
--- websites/production/camel/content/php.html (original)
+++ websites/production/camel/content/php.html Thu Jul 10 08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -130,7 +131,13 @@ public void testArgumentsExample() throw
 </div></div><h3 id="PHP-Loadingscriptfromexternalresource">Loading script from 
external resource</h3><p><strong>Available as of Camel 2.11</strong></p><p>You 
can externalize the script and have Camel load it from a resource such as 
<code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br 
clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 id="PHP-Dependencies">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 id="PHP-Howtogettheresultfrommultiplestatementsscript">How to 
get the result from multiple statements script</h3><p><strong>Available as of 
Camel 2.14</strong></p><p>As the scripteengine evale method just return a Null 
if it runs a multiple statments script. Camel now look up the value of script 
result by using the key of "result" from the value set. If you have multiple 
statements script, you need to make sure you set the value of result variable 
as the script return value.</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 id="PHP-Dependencies">Dependencies</h3><p>To use 
scripting languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/python.html
==============================================================================
--- websites/production/camel/content/python.html (original)
+++ websites/production/camel/content/python.html Thu Jul 10 08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -160,7 +161,13 @@ public void testArgumentsExample() throw
 </div></div><h3 id="Python-Loadingscriptfromexternalresource">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 id="Python-Dependencies">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 id="Python-Howtogettheresultfrommultiplestatementsscript">How 
to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 id="Python-Dependencies">Dependencies</h3><p>To 
use scripting languages in your camel routes you need to add the a dependency 
on <strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/ruby.html
==============================================================================
--- websites/production/camel/content/ruby.html (original)
+++ websites/production/camel/content/ruby.html Thu Jul 10 08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -160,7 +161,13 @@ public void testArgumentsExample() throw
 </div></div><h3 id="Ruby-Loadingscriptfromexternalresource">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 id="Ruby-Dependencies">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 id="Ruby-Howtogettheresultfrommultiplestatementsscript">How to 
get the result from multiple statements script</h3><p><strong>Available as of 
Camel 2.14</strong></p><p>As the scripteengine evale method just return a Null 
if it runs a multiple statments script. Camel now look up the value of script 
result by using the key of "result" from the value set. If you have multiple 
statements script, you need to make sure you set the value of result variable 
as the script return value.</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 id="Ruby-Dependencies">Dependencies</h3><p>To use 
scripting languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/scripting-languages-context.html
==============================================================================
--- websites/production/camel/content/scripting-languages-context.html 
(original)
+++ websites/production/camel/content/scripting-languages-context.html Thu Jul 
10 08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -116,7 +117,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="ScriptingLanguagesContext-Loadingscriptfromexternalresource">Loading script 
from external resource</h3><p><strong>Available as of Camel 
2.11</strong></p><p>You can externalize the script and have Camel load it from 
a resource such as <code>"classpath:"</code>, <code>"file:"</code>, or 
<code>"http:"</code>.<br clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 
id="ScriptingLanguagesContext-Dependencies">Dependencies</h3><p>To use 
scripting languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="ScriptingLanguagesContext-Howtogettheresultfrommultiplestatementsscript">How
 to get the result from multiple statements script</h3><p><strong>Available as 
of Camel 2.14</strong></p><p>As the scripteengine evale method just return a 
Null if it runs a multiple statments script. Camel now look up the value of 
script result by using the key of "result" from the value set. If you have 
multiple statements script, you need to make sure you set the value of result 
variable as the script return value.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="ScriptingLanguagesContext-Dependencies">Dependencies</h3><p>To use 
scripting languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/scripting-languages.html
==============================================================================
--- websites/production/camel/content/scripting-languages.html (original)
+++ websites/production/camel/content/scripting-languages.html Thu Jul 10 
08:18:39 2014
@@ -42,6 +42,7 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' 
type='text/javascript'></script>
+  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPython.js' 
type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -127,7 +128,13 @@ public void testArgumentsExample() throw
 </div></div><h3 
id="ScriptingLanguages-Loadingscriptfromexternalresource">Loading script from 
external resource</h3><p><strong>Available as of Camel 2.11</strong></p><p>You 
can externalize the script and have Camel load it from a resource such as 
<code>"classpath:"</code>, <code>"file:"</code>, or <code>"http:"</code>.<br 
clear="none"> This is done using the following syntax: 
<code>"resource:scheme:location"</code>, eg to refer to a file on the classpath 
you can do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[.setHeader(&quot;myHeader&quot;).groovy(&quot;resource:classpath:mygroovy.groovy&quot;)
 ]]></script>
-</div></div><h3 id="ScriptingLanguages-Dependencies">Dependencies</h3><p>To 
use scripting languages in your camel routes you need to add the a dependency 
on <strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><h3 
id="ScriptingLanguages-Howtogettheresultfrommultiplestatementsscript">How to 
get the result from multiple statements script</h3><p><strong>Available as of 
Camel 2.14</strong></p><p>As the scripteengine evale method just return a Null 
if it runs a multiple statments script. Camel now look up the value of script 
result by using the key of "result" from the value set. If you have multiple 
statements script, you need to make sure you set the value of result variable 
as the script return value.</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: py; gutter: false" 
type="syntaxhighlighter"><![CDATA[bar = &quot;baz&quot;;
+# some other statements ... 
+# camel take the result value as the script evaluation result
+result = body * 2 + 1
+]]></script>
+</div></div><p>&#160;</p><h3 
id="ScriptingLanguages-Dependencies">Dependencies</h3><p>To use scripting 
languages in your camel routes you need to add the a dependency on 
<strong>camel-script</strong> which integrates the JSR-223 scripting 
engine.</p><p>If you use maven you could just add the following to your 
pom.xml, substituting the version number for the latest &amp; greatest release 
(see <a shape="rect" href="download.html">the download page for the latest 
versions</a>).</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;


Reply via email to