BBEdit Include
Ruby
code posted
by
Curt Sheller
created at 21 Mar 17:23, updated at 21 Mar 17:34
Edit
|
Back
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 + "\">" |
253 Bytes in 3 ms with coderay