Apply StyleSheet to Textile with Redcloth?

417 views Asked by At

How do you apply an external stylesheet to a textile document with Ruby's Redcloth, so that I can convert it to HTML and it will apply the styles?

I understand how to apply styles individually to parts of text, but how to I define a whole style (say text with font-size 20, color red, alignment x, font-family y, etc.), and apply it to all the h2 tags, without having to copy-paste that {hash} everywhere?

2

There are 2 answers

0
knoopx On BEST ANSWER

Why don't you use an external CSS stylesheet file and include it on your HTML template?

0
Mereghost On

If you have a html template where the RedCloth'd document is rendered, an external CSS should do the job.