View Source Conpipe.Converter.Solid (conpipe v0.1.0)

This converter uses the Solid template engine to transform Liquid tags.

See the Solid repo for more information.

Summary

Functions

The convert/1 function simply takes a string and returns a converted stringk

Resolve liquid tags using Solid

The convert/4 function can be called directly from Tableau.

Functions

@spec convert(input_text :: String.t()) :: output_text :: String.t()

The convert/1 function simply takes a string and returns a converted stringk

Link to this function

convert(arg, converter_opts \\ [])

View Source
@spec convert(
  {input :: String.t(), assigns :: map()},
  converter_opts :: keyword()
) :: {output :: String.t(), assigns :: map()}

Resolve liquid tags using Solid

If there are syntax errors in the Liquid tags, the input text will returned as-is, with an error message pre-pended in the first line.

Link to this function

convert(filepath, front_matter, body, opts)

View Source
@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.Solid
  ]

The convert/4 function returns just the converted text. It should not be used in a pipeline.