/strip_heredoc

strip_heredoc is very small library for Elixir projects that needs to strips indentation in heredocs.

Primary LanguageElixirMIT LicenseMIT

strip_heredoc

Build Status Inline docs Release Hex Version

strip_heredoc is a one-method utility library for Elixir projects that needs to strips indentation in heredocs. This is a direct Elixir port from Rails!

The complete documentation for strip_heredoc is located here.

Adding strip_heredoc To Your Project

To use strip_heredoc with your projects, edit your mix.exs file and add it as a dependency:

defp deps do
  [{:strip_heredoc, "~> 0.8.0"}]
end

Examples

To use strip_heredoc, add

import StripHeredoc

to the top of the module so you can use strip_heredoc/1 function.

Example:

License

This software is licensed under the MIT license.