[template verbiage thomashartman1@gmail.com**20080909090854] hunk ./templates/templates-dont-repeat-yourself.st 8 -

A templating system also helps you individualize output. +

+A templating system also helps you individualize output. +The way this works is by inserting variable text into placeholder templates. hunk ./templates/templates-dont-repeat-yourself.st 12 -rather than the login/register options. Because if you're logged in you don't need to register, right? -So a templating system also gives you a way to insert variable text into placeholder templates. +rather than the login/register options. +The line below does this too, just for teaching purposes. If you are logged in, it will display your username. +

+ +

Logged In? Let's see: $ loggedInUser $

+ +$! next example should vary the text around the name !$ + +

Have a look at the template responsible for the content pane of this page. It's pretty boring, except the line above reads as + +

... Let's see: \$ loggedInUser \$

+ + hunk ./templates/templates-dont-repeat-yourself.st 30 + +