# Library for html generation

**URL:** <https://www.ruby-forum.com/t/library-for-html-generation/50494>\
**Category:** Ruby\
**Created:** [December 17, 2005, 12:28am UTC](https://www.ruby-forum.com/t/library-for-html-generation/50494 "2005-12-17T00:28:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![larrywright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Post date:** [December 17, 2005, 12:28am UTC](https://www.ruby-forum.com/t/library-for-html-generation/50494/1 "2005-12-17T00:28:46Z")

</div>

Is there a ruby library for generating HTML? I’m looking for something  
(other than what rails comes with), that’s not tied tightly to any  
particular web server framework.

Basically i just want to be able to call a method like get\_textarea(…),  
pass in the appropriate html attributes and get back a string with an  
html  
 snippet with the attribuetes set.

Thanks in advance.  
-larry

---

<div class="post-metadata">

**Author:** ![larrywright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Post date:** [December 17, 2005, 1:22am UTC](https://www.ruby-forum.com/t/library-for-html-generation/50494/2 "2005-12-17T01:22:59Z")

</div>

Larry W. wrote:

> Is there a ruby library for generating HTML? I’m looking for something  
> (other than what rails comes with), that’s not tied tightly to any  
> particular web server framework.
> 
> Basically i just want to be able to call a method like get\_textarea(…),  
> pass in the appropriate html attributes and get back a string with an html
> 
> snippet with the attribuetes set. Thanks in advance. -larry

[http://narf-lib.sourceforge.net/doc/classes/Web/Narflates.html](http://narf-lib.sourceforge.net/doc/classes/Web/Narflates.html)

[http://raa.ruby-lang.org/project/amrita/](http://raa.ruby-lang.org/project/amrita/)

[http://raa.ruby-lang.org/project/kwartz/](http://raa.ruby-lang.org/project/kwartz/)  
[http://raa.ruby-lang.org/project/misen/](http://raa.ruby-lang.org/project/misen/)

[http://xtemplate.sourceforge.net/](http://xtemplate.sourceforge.net/)

[http://raa.ruby-lang.org/project/bluecloth/](http://raa.ruby-lang.org/project/bluecloth/)

[http://raa.ruby-lang.org/project/redcloth/](http://raa.ruby-lang.org/project/redcloth/)

[http://chneukirchen.org/blog/archive/2005/02/kashmir.html](http://chneukirchen.org/blog/archive/2005/02/kashmir.html)

---

<div class="post-metadata">

**Author:** ![larrywright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Post date:** [December 18, 2005, 1:50am UTC](https://www.ruby-forum.com/t/library-for-html-generation/50494/3 "2005-12-18T01:50:19Z")

</div>

Don’t forget the CGI standard library:

[http://ruby-doc.org/stdlib/libdoc/cgi/rdoc/index.html](http://ruby-doc.org/stdlib/libdoc/cgi/rdoc/index.html)

-Justin

---

<div class="post-metadata">

**Author:** ![larrywright](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Post date:** [December 17, 2005, 1:29am UTC](https://www.ruby-forum.com/t/library-for-html-generation/50494/4 "2005-12-17T01:29:01Z")

</div>

yikes!

thanks much.
