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

Safe HaskellNone
LanguageHaskell98

Text.Shakespeare.Text

Synopsis

Documentation

type TextUrl url = RenderUrl url -> Builder #

class ToText a where #

Minimal complete definition

toText

Methods

toText :: a -> Builder #

Instances
ToText Int # 
Instance details

Defined in Text.Shakespeare.Text

Methods

toText :: Int -> Builder #

ToText Int32 # 
Instance details

Defined in Text.Shakespeare.Text

Methods

toText :: Int32 -> Builder #

ToText Int64 # 
Instance details

Defined in Text.Shakespeare.Text

Methods

toText :: Int64 -> Builder #

ToText Builder # 
Instance details

Defined in Text.Shakespeare.Text

Methods

toText :: Builder -> Builder #

ToText Text # 
Instance details

Defined in Text.Shakespeare.Text

Methods

toText :: Text -> Builder #

ToText Text # 
Instance details

Defined in Text.Shakespeare.Text

Methods

toText :: Text -> Builder #

ToText [Char] # 
Instance details

Defined in Text.Shakespeare.Text

Methods

toText :: [Char] -> Builder #

textFileDebug :: FilePath -> Q Exp #

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 #

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 #

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