Renamed include_file plugin to render_partial, added documentation to include_code and render_partial

This commit is contained in:
Brandon Mathis
2011-07-18 17:04:56 -04:00
parent 64b23d9f34
commit 1fd21a6e25
3 changed files with 67 additions and 31 deletions

View File

@ -1,3 +1,18 @@
# Title: Include Code Tag for Jekyll
# Author: Brandon Mathis http://brandonmathis.com
# Description: Import files on your filesystem into any blog post as embedded code snippets with syntax highlighting and a download link.
# Configuration: You can set default import path in _config.yml (defaults to code_dir: downloads/code)
#
# Syntax {% include_code path/to/file %}
#
# Example:
# {% include_code javascripts/test.js %}
#
# This will import test.js from source/downloads/code/javascripts/test.js
# and output the contents in a syntax highlighted code block inside a figure,
# with a figcaption listing the file name and download link
#
require 'pathname'
module Jekyll