In a yesod application, I want to create URL attributes for a graph that will be rendered by graphviz , and I want to use interpolation. Ideally,
graphToDot nonClusteredParams { fmtNode = \ (n,l) ->
[ URL [whamlet| @{MyRoute ...} |]
} g
Of course, the types don't match:
- attribute of
URL
is pureText
, butwhamlet
is monadic (widget) - when I replace by
shamlet
, type is fine, but it cannot interpolate:URL interpolation used, but no URL renderer provided
Is there an easy way to solve this?