s Ruby - Include script test

Ruby Testing

This is a testing page for the Curt Sheller Publication main web site.

Ruby Testing (ruby-script.shtml) | Updated: 21-Jul-2008 - 11:27

Ruby Include Script click to show or hide or section

BBEdit lets you include scripts written in Perl, Python, Ruby, or any other Unix scripting language.

Including Unix Scripts - Ruby

BBEdit lets you include scripts written in Perl, Python, Ruby, or any other Unix scripting language. The complete path name of the file being processed is passed to the script as its first argument, and any variables in the include statement are passed as additional arguments. (For Perl, all these can be retrieved by your script via @ARGV.)

Any text sent to STDOUT by the script will be taken as the value of the bbinclude operation and inserted into the HTML file. If an error occurs while running the script, the STDERR output, if any, will be inserted into the file along with the STDOUT, and a single line indicating the error will be added to the error browser.

See the dev folder for more examples.

Hello World Ruby Script

bbinclude ":scripts:ruby:HelloWorld.rb"

Hello, Ruby!!!!

Getting img file dimensions

1
2
3
4
5
6
7
8
9
10
#!/usr/bin/ruby
# get the image file and its size and return a <img scr""> tag

#get the image file in 
imageFile = ARGV[2]

# TODO - Figure out reading the file for the dimensions

puts "<img class=\"book-image\" src=\"" + imageFile + "\">"

Ruby - Include script test (ruby-script.shtml) | Updated: 2008 Jul 21 - 11:27

Did you enjoy this page? Please bookmark it onto:

Del.icio.us! Digg! Reddit! Blinklist! Spurl! Simpy! Newsvine! Furl! Fark! Blogmarks! Yahoo! Smarking! Netvouz! Ma.gnolia! FeedMeLinks! BlinkBits! linkaGoGo!
Close Move
Main Site Navigation Menu

The main site menu is divided into a few sections such as the online store, instrument specific information, online lessons, miscellaneous goodies, contact info and site information.

With over 300 pages of content the various sections and pages within each can be visited using the tabbed interface.

Tabbed section navigation

Each major section on the Curt Sheller Publication web site has additional pages of content that can be visited using the tabs at the top of the page directly above the page title.

Page Sub Sections

Most page sections can be expanded and collapsed. Allowing you to focus on specific content.

All page sections have go to top of page , go to contents and help buttons for quick page navigation.


Popup Views

Indicated as a gray border around an image. Additional information and larger views of samples pages, PDF files and book covers can be viewed in popup windows.

PDF file images and book covers can be viewed larger in a popup view by clickin on the actual image.