Root cause of error message

11 views
Skip to first unread message

vpcom...@gmail.com

unread,
Jul 4, 2013, 10:32:20 AM7/4/13
to webgen...@googlegroups.com
I publish some of the contents of my Firefox bookmarks file to the web as part of a web site built using webgen.

This is a multistep process that has a pipeline that includes a program that reads a bookmarks.html file and extracts the parts of interest and then rewrites them conforming to webgen markup.

I'm making the transition between webgen .4 and .5. I thought I was mostly through the process when I got to the step were the automatically generated pages were to be turned into html by webgen.

Here is a sample input file:

---
title: Oven Regulations, Rules, and Statutes
in_menu: false
routed_title: Oven Regulations, Rules, and Statutes
---
This is a collection of links (not all recently verified)
mostly relating to wood-fired ovens for baking bread and pizza.
This page was automatically generated from my Firefox bookmarks.html file on
Thu Jul 04 09:11:43 CDT 2013.

*Linking directly to anchors in this page could result in broken links when I add headings.*



*See Also:*


* [Brick Ovens](brickovens_links.html)
* [Businesses with Brick Ovens](businesses_links.html)
* [Individual Brick Oven Projects](individual_links.html)
* [Cob Construction in General](cobconstruction_links.html)
* [Cob Ovens](cobovens_links.html)
* [Community Ovens](community_links.html)
* [Historical, Indigenous, or Recreated Historical Ovens](history_links.html)
* [Internet Video about Ovens](video_links.html)
* [Mobile Ovens](mobile_links.html)
* [Other Ovens](otherovens_links.html)
* [Oven Blogs](blogs_links.html)
* [Oven Classes](classes_links.html)
* [Oven Component Suppliers](components_links.html)
* [Oven News](news_links.html)
* [Oven Theory and General Techniques](theory_links.html)
* [Oven Tools and Accessories](tools_links.html)
* [Oven Regulations, Rules, and Statutes](regulations_links.html)
* [Stacked Brick Ovens](stacked_links.html)
* [Temporary Brick Ovens](temporary_links.html)

<hr />
<a name="ovenregulationsrulesandstatutes"></a>

<h3 id="node18288">Oven Regulations, Rules, and Statutes</h3>
<dd id="node18290">Mainly for Minnesota</dd>
<dl id="node18292">
<p id="node18293">
<dt id="node18294">

<dt id="node18297">
<a id="node18298" HREF="http://www.stpaul.gov/index.asp?NID=268">City of St. Paul, MN - Official Website - Firework Permits</a><br />

<dd id="node18300">Firework Permits, Open Burning, Assembly</dd>
<dt id="node18302">
<a id="node18303" HREF="http://ulstandardsinfonet.ul.com/outscope/outscope.asp?fn=2162.html">Scope for Subject 2162</a><br />

<dt id="node18305">
<a id="node18306" HREF="http://www.fornobravo.com/commercial_pizza_oven/assembled_pizza_oven.html">Commercial Pizza Ovens | Gas and Wood Fired Pizza Ovens for Restaurants</a><br />

<dd id="node18308">Commercial pizza ovens, gas fired pizza ovens, wood fired pizza ovens, traditional pizza oven</dd>
<dt id="node18310">
<a id="node18311" HREF="http://www.fornobravo.com/company/ul_etl.html">UL-Certified Pizza Ovens</a><br />

<dd id="node18313">Forno Bravo announced agreement for UL-2162 certification for the Casa, Premio and Ristorante series wood-fired pizza ovens.</dd>
<dt id="node18315">
<a id="node18316" HREF="http://www.flboa.com/news/87-wood-pizza-oven.html">FLBOA - Wood Fired Baking Oven</a><br />

<dt id="node18318">
<a id="node18319" HREF="http://www.rumford.com/oven/ovencode.html">Oven Code Issues</a><br />

<dt id="node18321">
<a id="node18322" HREF="http://www.rumford.com/oven/label.html">Oven Labels</a><br />
</dl>

<p id="node18324">
<dt id="node18325">
<p id="node19009">
<dt id="node19010">
<p id="node19192">
<dt id="node19193">

Here is the message that I'm getting from webgen 0.5.14:

C:\Ruby187\webgen\quest2>webgen
Starting webgen...
Updating tree...
...done in 1.2887 seconds
Writing changed nodes...
An error has occurred:
  Error in </default.template:~60> while rendering </blogs_links.en.html> with Webgen::ContentProcessor::Erb:
    undefined local variable or method `node' for #<Webgen::ContentProcessor::Erb:0x537a9c8>

(The error was from a similar, larger file.)

My automated generator for .page files takes node IDs from the bookmarks file and carries them over so that I can trace where the bookmarks came from. I could modify my generator to not include the IDs but I fear for the loss of information.

Is there anything I can do to work around this problem? It's legal HTML as far as I know.

Maybe another alternative would be to slightly modify my HTML generation to put something out to turn off processing by kramdown of the areas with the offending HTML.

Suggestions?

vpcom...@gmail.com

unread,
Jul 4, 2013, 5:30:50 PM7/4/13
to webgen...@googlegroups.com
OK. Not the problem I thought it was.

I had a defectively modified default.template (which referenced a variable named node).

My bad.
Reply all
Reply to author
Forward
0 new messages