[Uw-ruby] Encapsulating HTML <style> using CGI??
Steve Dame
steve at vdsp.com
Tue Nov 20 23:13:01 PST 2007
I have a question about using Ruby CGI. I want to be able to generate
some very rich web tables that the HTML is generated from a tool chain
of Excel--Word and then exported to an HTML file for the look and feel
of my web page.
The cgi.rb example got me pointed in the right direction, but how does
one go about pulling raw text "style" strings into a cgi object so that
it can properly build an HTML sections output?
The objective is to get a section of the CGI Ruby script to generate
something like:
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Times New Roman";
panose-1:0 2 2 6 3 5 4 5 2 3;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:50331648 0 0 0 1 0;}
@font-face
{font-family:Verdana;
panose-1:0 2 11 6 4 3 5 4 4 2;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:50331648 0 0 0 1 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";}
bla
bla
bla
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
FROM making a call to the Ruby CGI class
cgi.style
How would one encapsulate all of the above complex text"???
--
Stephen Dame
President/CEO
Virtual DSP Corporation
4119 125th St SE
Everett, WA 98208
Tel 425.379.8888
Fax 425.357.0567
http://www.virtual-dsp.com
More information about the Uw-ruby
mailing list