Sha256: c911c72be6db78016351af00accfc5e78892608f2aefd681782dcead19066a10

Contents?: true

Size: 1.53 KB

Versions: 26

Compression:

Stored size: 1.53 KB

Contents

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

## Testing a simple wrap
[- Testing Include -] → {% wrap include foo.html %}[- {{ yield }} -]{% endwrap %}

## Local var passing
[- Testing Include var_test -] → {% wrap include foo.html some_var="var_test" %}[- {{ yield }} -]{% endwrap %}

## Filter testing
[- TESTING INCLUDE -] → {% wrap include foo.html | upcase %}[- {% assign foo = 'bar' %}{{ yield }} -]{% endwrap %}
[= TESTING INCLUDE =] → {% wrap include foo.html | replace:"-","=" %}[- {{ yield | upcase }} -]{% endwrap %}
[- TESTING FILTERS -] → {% wrap include foo.html | replace:"INCLUDE","FILTERS" %}[- {{ yield | upcase }} -]{% endwrap %}

## Conditional wrap
'' → '{% wrap include foo.html unless true %}[- {{ yield }} -]{% endwrap %}'
'' → '{% wrap include foo.html unless some_bool %}[- {{ yield }} -]{% endwrap %}'
[- Testing Include -] → {% wrap include foo.html if true %}[- {{ yield }} -]{% endwrap %}
[- Testing Include -] → {% wrap include foo.html if some_bool %}[- {{ yield }} -]{% endwrap %}

## Plugin wraps
[- include from plugin -] → {% wrap include awesome-sauce:some-include.html %}[- {{ yield }} -]{% endwrap %}
[- Yo Dawg, I heard you like includes. -] → {% wrap include theme:greet.html greeting="Yo Dawg" %}[- {{ yield }} -]{% endwrap %}

## Wrap render
[- Testing Render -] → {% wrap render test_render/_f.html %}[- {{ yield }} -]{% endwrap %}

## Wrap yield
{% content_for test %}Testing wrap yield{% endcontent_for %}
[- Testing wrap yield -] → {% wrap yield test %}[- {{ yield }} -]{% endwrap %}

Version data entries

26 entries across 26 versions & 1 rubygems

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