burrito-1.1.0.1: Parse and render URI templates.

Safe HaskellSafe
LanguageHaskell2010

Burrito.Internal.Render

Synopsis

Documentation

render :: Template -> String Source #

Renders a template back into a string. This is essentially the opposite of parse. Usually you'll want to use expand to actually substitute variables in the template, but this can be useful for printing out the template itself

>>> render <$> parse "valid-template"
Just "valid-template"
>>> render <$> parse "{var}"
Just "{var}"