jekyll-include-raw

jekyll-include-raw

jekyll-include-raw

Jekyll tag to automatically wrap an included file’s contents in {% raw %} / {% endraw %} instructions. No need to edit files directly.

Use case:

  • including files that contain text which cause Liquid parse errors, like coords := []coord{{3, 2}, {1, 2}, {1, 1}}

Example Usage

{% highlight go %}{% include_raw golang/main.go %}{%- endhighlight -%}

Installation

group :jekyll_plugins do
  gem "jekyll-include-raw"
end

Context