nosamanuel / cottonmouth

Pure-Python HTML generation
BSD 3-Clause "New" or "Revised" License
15 stars 5 forks source link

README Example has undefined variable #8

Open adamlwgriffiths opened 3 years ago

adamlwgriffiths commented 3 years ago

The example in the README has an undefined variable, specifically header.

            [header, h1(u'The Website', id='header')],

Based on the output, I suspect this should be changed to

            [h1(u'The Website', id='header')],

The resulting HTML also differs from what it should generate:

[header, h1(u'The Website', id='header')],

does not generate

<h1 id="header">Welcome to the site!</h1>