haskell - Text.Hamlet.Runtime - nesting HamletData? -
i rendering hamlet templates using runtime module. following works promised example data:
let hamletdatamap = map.fromlist [ ("name", "michael") , ("hungry", tohamletdata true) -- true , ("foods", tohamletdata [ "apples" , "bananas" , "carrots" ]) ] but can't see way me render nested data. instance if have list of metadata of various fruits, like:
let hamletdatamap = map.fromlist [ ("name", "michael") , ("hungry", tohamletdata true) -- true , ("fruits", tohamletdata [ [ ("name", "apple") , ("taste", "sour") ] , [ ("name", "..") , ("taste", "...") ] ]) ] in text.hamlet.rt there hdlist [hamletmap] looks kindof strange still promising. can creates instances of hdlist gives me type mismatch hamletdata actual type rt.hamletdata url0.
i'm thankful ideas or suggestions.
Comments
Post a Comment