Sha256: c7e60584aae1a99a965e398e649018a01177644ea2503c15f7aa49ad1f685355

Contents?: true

Size: 1.54 KB

Versions: 4

Compression:

Stored size: 1.54 KB

Contents

---
partial: foo.html
---
{% 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 test-plugin:some-include.html %}[- {{ yield }} -]{% endwrap %}
[- Yo Dawg, I heard you like includes. -] → {% wrap include test-plugin: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

4 entries across 4 versions & 1 rubygems

Version Path
octopress-wrap-tag-1.0.3 test/wrap.html
octopress-wrap-tag-1.0.2 test/wrap.html
octopress-wrap-tag-1.0.1 test/wrap.html
octopress-wrap-tag-1.0.0 test/wrap.html