Good, finally understood. You would not believe how long I looked at the Hackage docs trying to put this together. Here's a far-fetched example for those of you who are following him:
let p = newSTMP "Parent --> $child()$" :: StringTemplate String let c = newSTMP "Child --> Your content Here." :: StringTemplate String let grp = groupStringTemplates [("parent", p),("child", c)] putStrLn $ toString $ fromJust $ getStringTemplate "parent" grp
Fingerprints:
Parent
I will add that I think that some of my difficulties are related to the fact that I am not so familiar with Java StringTemplate. I'm still not sure to what extent the Haskell package emulates Java.
source share