Sha256: 40f34fd3db401fe1723391bfafe58e742c2fe54536bebc4ffb4ccee0fb60bfb2

Contents?: true

Size: 1.34 KB

Versions: 31

Compression:

Stored size: 1.34 KB

Contents

---
layout: nil
---
{% assign some_bool = true %}

## Testing a simple include
Testing Include → {% include foo.html %}

## Local var passing
Testing Include var_test → {% include foo.html some_var="var_test" %}

## Filter testing
TESTING INCLUDE → {% include foo.html | upcase %}
'' → '{% include foo.html | upcase unless true %}'

## Conditional Include
'' → '{% include foo.html unless true %}'
'' → '{% include foo.html unless some_bool %}'
'' → '{% include foo.html unless site.name == 'Your New Jekyll Site' %}'
Testing Include → {% include foo.html if true %}
Testing Include → {% include foo.html if site.name == 'Your New Jekyll Site' %}
Testing Include var_test → {% include foo.html some_var="var_test" if some_bool %}

## Plugin wraps
include from plugin → {% include awesome-sauce:some-include.html %}
Yo Dawg, I heard you like includes. → {% include theme:greet.html greeting="Yo Dawg" %}
'' → '{% include theme:greet.html greeting="Yo Dawg" unless some_bool %}'
Yo Dawg, I heard you like includes. → {% include theme:greet.html greeting="Yo Dawg" if some_bool %}

## Ternary include
, I heard you like includes. → {% include (false ? foo.html : theme:greet.html) %}
Testing Include → {% include (some_bool ? foo.html : theme:greet.html) %}

## Theme Include override
include from theme override → {% include theme:bar.html %}

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
octopress-ink-1.0.0.rc.11 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.10 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.9 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.8 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.7 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.6 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.5 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.3 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.2 test/source/test_tags/include.html
octopress-ink-1.0.0.rc.1 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.45 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.44 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.43 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.42 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.41 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.40 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.39 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.38 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.37 test/source/test_tags/include.html
octopress-ink-1.0.0.alpha.36 test/source/test_tags/include.html