Safe Haskell | None |
---|
This experimental module provides a monad transformer JMacroT
and corresponding XMLGenerator
instance which can be used to
directly generate javascript which builds an XML/HTML DOM.
This is similar to the 'ToJExpr XMLToDOM' instance except that
there is no intermediate XML type. The XMLGenerator
instance
directly generates the javascript needed to build the DOM.
This is intellectually fun. But it is not clear how it is valuable. That is why this module is marked as experimental.
Documentation
isomorphic to IdentityT, but used for generating javascript that generates XML/HTML
mapJMacroT :: (m a -> n b) -> JMacroT m a -> JMacroT n bSource
map a function over the inner monad
evalJMacroM :: XMLGenT JMacroM a -> aSource
evaluate JMacroM