Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed spam link

  • Loading branch information...
commit 5d4eb3ab984965674aa75d7399179c08922d7a5a 1 parent 408fb96
anonymous authored anandology committed
Showing with 5 additions and 3 deletions.
  1. +5 −3 templetor.md
8 templetor.md
View
@@ -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
+ Value of qux is $qux
+
+## Links
Please sign in to comment.
Something went wrong with that request. Please try again.