|
StringTemplate BasicsIn the previous section we rendered a template in ghci using the following command *Main Misc View Text.StringTemplate> do templates <- directoryGroup "templates" ; writeFile "output.html" ( renderTemplateGroup templates [] "templates-dont-repeat-yourself" ) Let's look more carefully at these functions.
Next, let's look at a slightly more involved example of StringTemplate usage than we've seen so far.
Try to gain an understanding of the most important features in the StringTemplate system by getting a sense of how the my-favorite-animal page got generated. When you're done doing that, you should have enough StringTemplate knowledge to shoot yourself in the foot :) For a more in depth look at StringTemplate, see the following:
And now, on to macid. |