Project

jekyll-cat

0.0
No commit activity in last 3 years
No release in over 3 years
Jekyll plugin providing a method to output contents of files and URLs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 3.1
 Project Readme

Jekyll cat

Its name inspired by unix cat, this Jekyll plugin providing a method to output contents of files and URLs. You can access files relatively (e.g. any file in the site, or in directories surrounding it, permissions allowing) as well as absolute paths (if that is any use) and contents return at URLs.

Install

Add the following to your Gemfile and then run bundle install.

gem 'jekyll-cat'

Usage

In liquid, use the cat tag to execute your include, passing the tag your path or url.

Examples

Relative

{% cat assets/vector/my-svg-file.svg %}

Absolute

{% cat /path/to/file %}

URL

{% cat https://loripsum.net/api/ %}

Variable

{% assign svg_path = 'assets/vector/my-svg-file.svg' %}
{% cat svg_path %}