# Webrick

**URL:** <https://rubytalk.org/t/webrick/7890>\
**Category:** ruby-talk\
**Created:** [6 September 2003 20:53 UTC](https://rubytalk.org/t/webrick/7890 "2003-09-06T20:53:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thierry\_wilmot](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@thierry\_wilmot](https://rubytalk.org/u/thierry_wilmot)\
**Post date:** [6 September 2003 20:53 UTC](https://rubytalk.org/t/webrick/7890/1 "2003-09-06T20:53:30Z")

</div>

I’m looking for a way to implement a standard webrick HTTP server but  
with a special feature : before serve a HTML page it replace all %foo%  
strings place in my file page into the content of the foo ruby variable.

Thank in advance  
Thierry

---

<div class="post-metadata">

**Author:** ![Michael\_Garriss1](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Michael\_Garriss1](https://rubytalk.org/u/Michael_Garriss1)\
**Post date:** [6 September 2003 20:58 UTC](https://rubytalk.org/t/webrick/7890/2 "2003-09-06T20:58:05Z")

</div>

thierry wilmot wrote:

> I’m looking for a way to implement a standard webrick HTTP server but  
> with a special feature : before serve a HTML page it replace all %foo%  
> strings place in my file page into the content of the foo ruby variable.
> 
> Thank in advance  
> Thierry

Take a look at Amrita:

[http://www.brain-tokyo.jp/research/amrita/](http://www.brain-tokyo.jp/research/amrita/)

It’s _really_ powerful.

Michael

---

<div class="post-metadata">

**Author:** ![Paul\_William](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Paul\_William](https://rubytalk.org/u/Paul_William)\
**Post date:** [7 September 2003 01:10 UTC](https://rubytalk.org/t/webrick/7890/3 "2003-09-07T01:10:53Z")

</div>

I havent used webrick yet but I assume you can subclass the webrick HTTP  
server class and do what ever you want.

> **···**
>
> On Sun, 2003-09-07 at 08:53, thierry wilmot wrote:
> 
> > I’m looking for a way to implement a standard webrick HTTP server but  
> > with a special feature : before serve a HTML page it replace all %foo%  
> > strings place in my file page into the content of the foo ruby variable.
> > 
> > Thank in advance  
> > Thierry

---

<div class="post-metadata">

**Author:** ![Chad\_Fowler](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Chad\_Fowler](https://rubytalk.org/u/Chad_Fowler)\
**Post date:** [7 September 2003 03:20 UTC](https://rubytalk.org/t/webrick/7890/4 "2003-09-07T03:20:41Z")

</div>

# I’m looking for a way to implement a standard webrick HTTP server but

# with a special feature : before serve a HTML page it replace all %foo%

# strings place in my file page into the content of the foo ruby variable.

> **···**
>
> On Sun, 7 Sep 2003, thierry wilmot wrote:
> 
> # 
> 
> # Thank in advance
> 
> # Thierry
> 
> # 
> 
> # 
> 
> Check out RubLog ([http://www.sf.net/projects/rublog](http://www.sf.net/projects/rublog)). Someone else  
> suggested Amrita, which is a nice presentation framework, but it just so  
> happens that Dave’s templating mechanism for RubLog almost exactly as  
> you’ve described.
> 
> Chad
