在 yesod 应用程序中,我想为将由graphviz呈现的图形创建 URL 属性,并且我想使用插值。理想情况下,
graphToDot nonClusteredParams { fmtNode = \ (n,l) ->
[ URL [whamlet| @{MyRoute ...} |]
} g
当然,类型不匹配:
- 的属性
URL是纯的Text,但是whamlet是一元的(小部件) - 当我替换为 时
shamlet,类型很好,但它不能插值:URL interpolation used, but no URL renderer provided
有没有简单的方法来解决这个问题?