@@ -22,7 +22,7 @@ i.e. nicely indented and human readable.
2222
2323We'll try to get to all the features required to render this file:
2424
25- :download: `sample_html.html <../examples/html_render /sample_html.html >`
25+ :download: `sample_html.html <./sample_html.html >`
2626
2727Take a look at it by opening it in your text editor. And also in a browser to see how it's rendered.
2828
@@ -45,11 +45,11 @@ General Instructions:
4545
4646You can start with the framework in:
4747
48- :download: `html_render.py <../examples/html_render /html_render.py >`
48+ :download: `html_render.py <./html_render.py >`
4949
5050For each step, add the required functionality. There is example code to run your code for each step in:
5151
52- :download: `run_html_render.py <../examples/html_render /run_html_render.py >`
52+ :download: `run_html_render.py <./run_html_render.py >`
5353
5454You should be able to run that code at each step, uncommenting each new step in ``run_html_render.py `` as you go.
5555
@@ -80,7 +80,7 @@ That is:
8080
8181A start of a test file is provided here:
8282
83- :download: `test_html_render.py <../examples/html_render /test_html_render.py >`
83+ :download: `test_html_render.py <./test_html_render.py >`
8484
8585It has a few tests for the first few steps -- uncomment them as you go along.
8686
@@ -260,7 +260,7 @@ Should result in something like:
260260 </body >
261261 </html >
262262
263- See: :download: `test_html_output2.html <../examples/html_render /test_html_output2.html >`
263+ See: :download: `test_html_output2.html <./test_html_output2.html >`
264264
265265NOTE: when you run step 2 in ``run_html_render.py ``, you will want to comment out step 1 -- that way you'll only get one set of output.
266266
@@ -282,7 +282,7 @@ Create a ``Title`` subclass of ``OneLineTag`` class for the title.
282282You should now be able to render an html doc with a head element, with a
283283title element in that, and a body element with some ``<P> `` elements and some text.
284284
285- See :download: `test_html_output3.html <../examples/html_render /test_html_output3.html >`
285+ See :download: `test_html_output3.html <./test_html_output3.html >`
286286
287287Step 4:
288288-------
@@ -301,7 +301,7 @@ Note that you may now have *two* render methods -- the one in the ``Element`` ba
301301
302302You can now render some ``<p> `` tags (and others) with attributes.
303303
304- See: :download: `test_html_output4.html <../examples/html_render /test_html_output4.html >`
304+ See: :download: `test_html_output4.html <./test_html_output4.html >`
305305
306306NOTE: if you do "proper" CSS+html, then you wouldn't specify style directly in element attributes.
307307
@@ -363,7 +363,7 @@ Note that you now have maybe three render methods -- is there repeated code in t
363363
364364Can you refactor the common parts into a separate method that all the render methods can call? And do all your tests still pass (you do have tests for everything, don't you?) after refactoring?
365365
366- See: :download: `test_html_output5.html <../examples/html_render /test_html_output5.html >`
366+ See: :download: `test_html_output5.html <./test_html_output5.html >`
367367
368368
369369Step 6:
@@ -386,7 +386,7 @@ You should be able to subclass from ``Element``, and only override the ``__init_
386386
387387You can now add a link to your web page.
388388
389- See: :download: `test_html_output6.html <../examples/html_render /test_html_output6.html >`
389+ See: :download: `test_html_output6.html <./test_html_output6.html >`
390390
391391Step 7:
392392--------
@@ -407,7 +407,7 @@ for an <h2> header.
407407
408408It can subclass from ``OneLineTag `` -- overriding the ``__init__ ``, then calling the superclass ``__init__ ``
409409
410- See: :download: `test_html_output7.html <../examples/html_render /test_html_output7.html >`
410+ See: :download: `test_html_output7.html <./test_html_output7.html >`
411411
412412Step 8:
413413-------
@@ -424,7 +424,7 @@ http://validator.w3.org/#validate_by_input
424424
425425You now have a pretty full-featured html renderer -- play with it, add some new tags, etc....
426426
427- See :download: `test_html_output8.html <../examples/html_render /test_html_output8.html >`
427+ See :download: `test_html_output8.html <./test_html_output8.html >`
428428
429429
430430Step 9: Adding Indentation
522522
523523You should have nice pretty indented html now!
524524
525- See :download: `test_html_output9.html <../examples/html_render /test_html_output9.html >`
525+ See :download: `test_html_output9.html <./test_html_output9.html >`
526526
527527
528528.. _notes_on_handling_duck_typing :
0 commit comments