# Webgen 0.4.2

**URL:** <https://www.ruby-forum.com/t/webgen-0-4-2/87153>\
**Category:** Ruby\
**Created:** [February 28, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153 "2007-02-28T16:05:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [February 28, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/1 "2007-02-28T16:05:52Z")

</div>

Hey everybody,

I just released webgen 0.4.2 which closes some bugs and adds some new  
features. For a complete change log have a look at  
[http://webgen.rubyforge.org/news.html](http://webgen.rubyforge.org/news.html).

– Thomas

# About webgen

webgen is used to generate web pages from page and template files. You  
create one or more template files in which you define the layout of  
your page and where the content should go. After that you create page  
files in which you only define the content.

When webgen is run it combines the template with each of the page  
files and generates the HTML output files. During this process special  
tags are substituted so that, for example, dynamic menus or breadcrumb  
trails are generated.

# Installation

gem install webgen

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [February 28, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/2 "2007-02-28T16:09:54Z")

</div>

On 2/28/07, Thomas L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hey everybody,
> 
> I just released webgen 0.4.2 which closes some bugs and adds some new  
> features. For a complete change log have a look at [http://webgen.rubyforge.org/news.html](http://webgen.rubyforge.org/news.html).

When I go to this page, I see a gray page w/ only the following text:

Code corrupted. Insert fresh copy.

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [February 28, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/3 "2007-02-28T16:10:56Z")

</div>

Hi,

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [March 1, 2007, 2:55pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/4 "2007-03-01T14:55:34Z")

</div>

> […][http://webgen.rubyforge.org/news.html](http://webgen.rubyforge.org/news.html).  
> […]
> 
> Oops, gives me a page with :
> 
> Code corrupted. Insert fresh copy.
> 
> Regards, Gilbert

Hm… I can open the page without problems in Safari/Opera on Mac OS X  
and Opera/Konqueror on Linux. However, I do see this message using  
Firefox 1.5.0.9 on Linux… strange.

Although nothing is displayed, I can view the source and from the  
looks of it (syntax highlighting) it seems that Firefox does not like  
the HTML closed script tag in the header or something like that. Be  
aware that the W3C HTML validation service says that the page is valid  
XHTML 1.1!

I will have a look at the Firefox problem and update the homepage as  
soon as possible!

Bye,  
Thomas

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [March 1, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/5 "2007-03-01T17:27:57Z")

</div>

Hi,

On 3/1/07, Thomas L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Although nothing is displayed, I can view the source and from the  
> looks of it (syntax highlighting) it seems that Firefox does not like  
> the HTML closed script tag in the header or something like that. Be  
> aware that the W3C HTML validation service says that the page is valid  
> XHTML 1.1!

A self-closed script tag violates the DTD/Schema definition:

[http://www.w3.org/TR/xhtml-modularization/dtd\_module\_defs.html#a\_module\_Scripting](http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Scripting)  
[http://www.w3.org/TR/xhtml-modularization/abstract\_modules.html#s\_scriptmodule](http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_scriptmodule)

It has a “Minimal Content Model” of “PCDATA”, not “EMPTY”, so you’ll  
need to use the dual-tag form: .

The W3C validator is probably running up against one of its limitations:

[http://openjade.sourceforge.net/doc/xml.htm](http://openjade.sourceforge.net/doc/xml.htm)

HTH,

- Dimitri

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [March 1, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/6 "2007-03-01T15:16:39Z")

</div>

Hi,

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [March 1, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/7 "2007-03-01T18:01:00Z")

</div>

On Mar 1, 5:26 pm, “Dimitri A.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> A self-closed script tag violates the DTD/Schema definition:
> 
> [http://www.w3.org/TR/xhtml-modularization/dtd\_module\_defs.html#a\_modu...http://www.w3.org/TR/xhtml-modularization/abstract\_modules.html#s\_scr](http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_modu...http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_scr)…
> 
> It has a “Minimal Content Model” of “PCDATA”, not “EMPTY”, so you’ll  
> need to use the dual-tag form: .

Thanks for this explanation, I will change the homepage to use the  
dual-tag form!

Bye,  
Thomas

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [March 3, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/8 "2007-03-03T22:05:50Z")

</div>

> Thanks for this explanation, I will change the homepage to use the  
> dual-tag form!
> 
> Bye,  
> Thomas

I have updated the homepage, it is now viewable in Firefox (tested)  
and IE (not tested).

[http://webgen.rubyforge.org](http://webgen.rubyforge.org)

Bye,  
Thomas

---

<div class="post-metadata">

**Author:** ![tlockney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Post date:** [March 1, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/webgen-0-4-2/87153/9 "2007-03-01T17:31:57Z")

</div>

On Thu, Mar 01, 2007, Thomas L. wrote:

> Hm… I can open the page without problems in Safari/Opera on Mac OS X  
> and Opera/Konqueror on Linux. However, I do see this message using  
> Firefox 1.5.0.9 on Linux… strange.

It looks like it’s coming from statcounter:

[http://www.google.com/search?hl=en&q="Code+corrupted.+Insert+fresh+copy."&btnG=Google+Search](http://www.google.com/search?hl=en&q=%22Code+corrupted.+Insert+fresh+copy.%22&btnG=Google+Search)

Check where you include that, they might have changed something on their  
end that requires you to change the code you embed.

Ben
