Sha256: db4e9a73bddac4c98e63a616e40bda5e6a3b34d78f43df7c72c4bf16e8d18b69

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

---
partial: foo.html
---
{% assign some_bool = true %}

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

## Include from var
Testing Include → {% include page.partial %}
Testing Include → {% include {{ page.partial }} %}

## 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 %}

## Ternary include
Testing Include → {% include (false ? bar.html : foo.html ) %}
Testing Include → {% include (some_bool ? foo.html : test-plugin:greet.html) %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
octopress-include-tag-1.1.2 test/includes.html