Forum: Ruby on Rails Is possible to mantain a co0l blog without broke XHTML?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
29b03e8d822a7f318cd0cdc8299ee989?d=identicon&s=25 Assente Snix (assente)
on 2006-06-09 00:17
I started to write content in textarea in HTML then I migrated to
BBCode, then I came back HTML thanks to TinyMCE, now I see with interest
textile and markaby, but will they be "THE solution"?

As "internal" language anybody is free to use the language he/she
prefers but about the future? Probably you won't be able to reuse it in
another platform/cms

Anybody wants an easy way to add texts, code, photos, videos,.. into the
website, but there are 2 completly different ways to do it:

wiki, markaby, textile,.. You "should" never get invalid code using
these tecniques and you could use some kind of helper to get common
code, but you have to write imaging the output and sometimes you have to
remember to escape something

You get easly what you want, but sometime the code could be dirty and
But you use HTML inside so you'll be sure that every cms could import

What about an hybrid?
You write a simple HTML code via WYSIWYG editor and then re-parse it
again with Rails-aCMS-orAnythingElse.

Probably the best solution for the code highlightning is Coderay
(; you write a code like:

<code lang="ruby">
Class Test

and you get:

<code lang="ruby">
<span class="keyword">Class</span> Test
<span class="keyword">end</span>

The same concept could be used also for other kind of objects

I mean:

<img alt="An wonderful image" src="image.jpg" />

Could became after reparsed:

 <img alt="A wonderful image" src="image.jpg" />
 <div class="cap">A wonderful image</div>

What do you think about it? Do you have better ideas about how to
mantain a clean and indipendent internal code?

A problem could be that parse alwais is heavy but with caching this
isn't a problem anymore.

a random XHTML blog with XHTML broken
This topic is locked and can not be replied to.