[more of same
thomashartman1@gmail.com**20080910132436] hunk ./templates/stringtemplate-basics.st 17
-
hunk ./templates/stringtemplate-basics.st 20
-
+
*Main Misc View Text.StringTemplate> :t (directoryGroup :: String -> IO (STGroup String))
+
The actual type of directoryGroup is a little less concrete than the above, and uses type classes.
+
Our :t command gives directoryGroup a concrete type, and since there's no error, we know it typechecks.
hunk ./templates/stringtemplate-basics.st 25
-
+
*Main Misc View Text.StringTemplate> :t renderTemplateGroup
+
renderTemplateGroup :: STGroup String -> [(String, String)] -> String -> String
hunk ./templates/stringtemplate-basics.st 28
+
+
+
+
hunk ./templates/templates-dont-repeat-yourself.st 8
+
HAppS doesn't care much what templating system you use. I use the +TK HStringTemplate package to get the job done, so +that's the syntax you'll be seeing in what follows.
+ hunk ./templates/templates-dont-repeat-yourself.st 20 -" Logged In? Let's see: $ loggedInUser $ "
+Logged In? Let's see: $ loggedInUser $
hunk ./templates/templates-dont-repeat-yourself.st 37 -*Main Misc View Text.StringTemplate> :t (directoryGroup :: String -> IO (STGroup String))
-(directoryGroup :: String -> IO (STGroup String)) :: String -> IO (STGroup String)
-
*Main Misc View Text.StringTemplate> :t renderTemplateGroup
-renderTemplateGroup :: STGroup String -> [(String, String)] -> String -> String
-
hunk ./templates/templates-dont-repeat-yourself.st 67
-
HAppS doesn't care much what templating system you use. I use the -TK HStringTemplate package to get the job done, so -that's the syntax you've been seeing. We'll learn some -StringTemplate basics next. -
+We'll learn some StringTemplate basics next.