ginger-0.8.2.0: An implementation of the Jinja2 template language in Haskell

Safe HaskellNone
LanguageHaskell2010

Text.Ginger.Run.Builtins

Description

Implementations of the default template context functions and values. You will not normally need to import this module, unless you want to provide your own context with things that reuse functionality from the default ones.

Documentation

tshow :: Show a => a -> Text Source #

inList :: GVal m -> GVal m -> Bool Source #

inDict :: GVal m -> GVal m -> Bool Source #

less :: Monad m => GVal m -> GVal m -> Maybe Bool Source #

greater :: Monad m => GVal m -> GVal m -> Maybe Bool Source #

lessEq :: Monad m => GVal m -> GVal m -> Maybe Bool Source #

difference :: Num a => [a] -> a Source #

ratio :: (Show a, Fractional a, Num a) => [a] -> a Source #

intRatio :: (Integral a, Num a) => [a] -> a Source #

modulo :: (Integral a, Num a) => [a] -> a Source #

gfnSlice :: Monad m => Function (Run p m h) Source #

gfnCompose :: forall m p h. Monad m => Function (Run p m h) Source #

gfnPartial :: forall m p h. Monad m => Function (Run p m h) Source #

gfnZip :: forall m p h. Monad m => Function (Run p m h) Source #

gfnZipWith :: forall m p h. Monad m => Function (Run p m h) Source #

gfnSort :: forall p m h. Monad m => Function (Run p m h) Source #

onFst :: (a -> a -> b) -> (a, c) -> (a, d) -> b Source #

listToIndexedDict :: [a] -> [(Text, a)] Source #

getTimeLocale :: Monad m => GVal (Run p m h) -> Run p m h TimeLocale Source #

gfnJSON :: Monad m => Function (Run p m h) Source #

gfnEven :: Monad m => Function (Run p m h) Source #

gfnOdd :: Monad m => Function (Run p m h) Source #