Hello, does Lucid allow to compute html parts?
To clarify, in usual Haskell, it is possible to define a function as:
f x = y + z
where
y = 2*x
z = x*x
But, in Lucid templates, it seems to only be possible some simpler calculations:
getPage :: String -> Html ()
getPage msg = html_ $ do
p_ (toHtml $ msg)
I would like to know if it is possible to use a “where” clause in Lucid html generation for complex computations.