1 module Text.Templating.Heist.Splices.Ignore where 2 3 ------------------------------------------------------------------------------ 4 import Data.Text (Text) 5 6 ------------------------------------------------------------------------------ 7 import Text.Templating.Heist.Types 8 9 10 ------------------------------------------------------------------------------ 11 -- | Default name for the ignore splice. 12 ignoreTag :: Text 13 ignoreTag = "ignore" 14 15 16 ------------------------------------------------------------------------------ 17 -- | The ignore tag and everything it surrounds disappears in the 18 -- rendered output. 19 ignoreImpl :: Monad m => Splice m 20 ignoreImpl = return [] 21 22