View Source Conpipe.Converter.Eex (conpipe v0.0.1-alpha.1)
This converter uses the EEx
template engine to transform EEx tags.
See EEx Hexdocs for more info.
Summary
Functions
@spec convert({input :: String.t(), assigns :: map()}, keyword()) :: {output :: String.t(), assigns :: map()}
Resolve EEx tags
@spec convert( filepath :: String.t(), front_matter :: map(), body :: String.t(), opts :: map() ) :: output :: String.t()
The convert/4
function can be called directly from Tableau.
# config/config.exs
config :tableau, :config,
url: "http://localhost:4999",
converters: [
md: Conpipe.Converter.Eex
]
The convert/4
function returns just the converted text. It should not
be used in a pipeline.