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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -