From 5d4eb3ab984965674aa75d7399179c08922d7a5a Mon Sep 17 00:00:00 2001 From: anonymous Date: Wed, 14 Jul 2010 20:58:28 +0000 Subject: [PATCH] Removed spam link --- templetor.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templetor.md b/templetor.md index 9ec82992..928b3cbe 100644 --- a/templetor.md +++ b/templetor.md @@ -182,7 +182,7 @@ Here's an example: print render.base(render.message('Hello, world!')) -The first line imports templetor. The second says that our templates are in the directory `templates/`. The third give all our templates access to the `len` function. The fourth grabs the template `message.html`, passes it the argument `'Hello, world!'`, passes the result of rendering it to the template `base.html` and prints the result. (If your templates don't end in `.html` or `.xml`, templetor will still find them, but it won't do its automatic HTML-encoding.) +The first line imports templetor. The second says that our templates are in the directory `templates/`. The third give all our templates access to the `len` function. The fourth grabs the template `message.html`, passes it the argument `'Hello, world!'`, passes the result of rendering it to [mcitp](http://www.buyitcert.com/mcitp.html) the template `base.html` and prints the result. (If your templates don't end in `.html` or `.xml`, templetor will still find them, but it won't do its automatic HTML-encoding.) ## Turning Off Filter By default `template.render` will use `web.websafe` filter to do HTML-encoding. To turn it off, put a : after the $ as in: @@ -213,7 +213,7 @@ Then in the template `foo.html`: $:bar more html -This replaces the `$:bar` with the output of the `render.bar()` call (which is why it must be `$:`/unfiltered, so that you get un-encoded HTML (unless you want something else of course)). You can pass variables in, in the same way: +This replaces the `$:bar` with the output of the `render.bar()` call (which is why it must be `$:`/unfiltered, so [ccnp](http://www.buyitcert.com/ccnp.html) that you get un-encoded HTML (unless you want something else of course)). You can pass variables in, in the same way: print render.foo(render.bar(baz), qux) @@ -227,4 +227,6 @@ In template foo (`foo.html`): $def with (bar, qux) html goes here $:bar - Value of qux is $qux \ No newline at end of file + Value of qux is $qux + +## Links \ No newline at end of file