From fad210100b1f7620bb1397d35b183d7cdcd2aea6 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Tue, 11 Jun 2013 16:08:47 +0200 Subject: [PATCH] document include tag parameters --- site/docs/templates.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/site/docs/templates.md b/site/docs/templates.md index c1e6a95a..ead0189f 100644 --- a/site/docs/templates.md +++ b/site/docs/templates.md @@ -192,6 +192,18 @@ Jekyll expects all include files to be placed in an `_includes` directory at the root of your source directory. This will embed the contents of `/_includes/sig.md` into the calling file. +You can also pass parameters to an include: + +{% highlight ruby %} +{{ "{% include sig.textile param=value " }}%} +{% endhighlight %} + +These parameters are available via Liquid in the include: + +{% highlight ruby %} +{{ "{{ include.param " }}}} +{% endhighlight %} + ### Code snippet highlighting Jekyll has built in support for syntax highlighting of [over 100