All
All
Projects
Snippets
Go
Explore
Home
About
Get Involved
IP
Legal
Interact With Us
Blog
Webinars
Discord
Twitter
YouTube
Facebook
OpenNTF GitHub
OpenNTF Connections GitHub
IBM Connections Downloads
DominoHelp (external)
Explore
Home
About
Get Involved
IP
Legal
Interact With Us
Blog
Webinars
Resources
Discord
Twitter
YouTube
Facebook
OpenNTF GitHub
OpenNTF Connections GitHub
IBM Connections Downloads
DominoHelp (external)
Resources
Discord
Twitter
YouTube
Facebook
OpenNTF GitHub
OpenNTF Connections GitHub
IBM Connections Downloads
DominoHelp (external)
Projects
Snippets
Collaboration Today
Sign In
Username
Password
Forgotten your login credentials?
Login
Register
All
All
Projects
Snippets
Go
New OpenNTF Project: Ruby in XPages
Posted by
Niklas Heidloff
on
April 27, 2012
Jesse Gallagher has contributed a first version of his
Ruby in XPages
project. It essentially allows using the Ruby scripting language in XPages.
Here is a screenshot and there is also a
mini video
.
Jesse describes in his
blog
more details about the project. He provides an overview of the features in the project description:
- Works with both #-style and $-style bindings and for both value bindings and method bindings (e.g. beforePageLoad)
- Allows for Ruby "Script Libraries". [...] can be references on a page like a normal library but with "text/ruby" or "text/x-ruby" as the type: <xp:script src="/somelibrary.rb" type="text/ruby" clientSide="false" />
- Can access local variables as readily as in Server JavaScript, such as "session", "database", and repeat-local variables
- The included file "domino.rb" contains some extensions for the Domino product objects in Ruby, allowing for Ruby-style looping in collection classes (e.g. docs.each { |doc| ... }) and hash-style access to a document's item values (e.g. doc["Form"]). It is meant to be added to the project as a "Script Library" as described above
- Though currently commented out, there is some extremely-basic support for arbitrary other scripting languages.
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus