shakespeare-2.0.14: A toolkit for making compile-time interpolated templates

Safe HaskellNone
LanguageHaskell98

Text.Shakespeare.Text

Synopsis

Documentation

type TextUrl url = RenderUrl url -> Builder Source #

class ToText a where Source #

Minimal complete definition

toText

Methods

toText :: a -> Builder Source #

Instances

ToText Int Source # 

Methods

toText :: Int -> Builder Source #

ToText Int32 Source # 

Methods

toText :: Int32 -> Builder Source #

ToText Int64 Source # 

Methods

toText :: Int64 -> Builder Source #

ToText Builder Source # 

Methods

toText :: Builder -> Builder Source #

ToText Text Source # 

Methods

toText :: Text -> Builder Source #

ToText Text Source # 

Methods

toText :: Text -> Builder Source #

ToText [Char] Source # 

Methods

toText :: [Char] -> Builder Source #

renderTextUrl :: RenderUrl url -> TextUrl url -> Text Source #

textFileDebug :: FilePath -> Q Exp Source #

Deprecated: Please use textFileReload instead

strict text

lazy text, same as stext :)

strict text whose left edge is aligned with bar ('|')

lazy text, whose left edge is aligned with bar ('|') * Yesod code generation

codegen :: QuasiQuoter Source #

codegen is designed for generating Yesod code, including templates So it uses different interpolation characters that won't clash with templates. You can use the normal text quasiquoters to generate code

codegenSt :: QuasiQuoter Source #

Generates strict Text codegen is designed for generating Yesod code, including templates So it uses different interpolation characters that won't clash with templates.