File: 2013-12-17-include-variable-filters.markdown

package info (click to toggle)
jekyll 2.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,908 kB
  • ctags: 687
  • sloc: ruby: 6,811; sh: 121; xml: 106; makefile: 35
file content (21 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: Post
layout: post
include1: include.html
include2: include
include3: INCLUDE
include4: params
---

Liquid tests
- 1 {% include {{ page.include1 }} %}
- 2 {% include {{ page.include2 | append: '.html' }} %}
- 3 {% include {{ page.include3 | downcase | append: '.html' }} %}

Whitespace tests
- 4 {% include {{page.include1}} %}
- 5 {% include {{   page.include1}} %}
- 6 {% include {{  page.include3   | downcase |   append:  '.html'}} %}

Parameters test
- 7 {% include {{ page.include4 | append: '.html' }} var1='foo' var2='bar' %}