Sha256: 85fead3f6ee0cbad0477c737993bf1723d1d94a85bdca13e87b0260925ca185e
Contents?: true
Size: 1.68 KB
Versions: 2
Compression:
Stored size: 1.68 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 %} ## Wrap return {% wrap return page.partial %}partial: {{ yield }}{% endwrap %} '{% wrap return nuthin %}should be blank: {{ yield }}{% endwrap %}'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octopress-wrap-tag-1.1.1 | test/wrap.html |
octopress-wrap-tag-1.1.0 | test/wrap.html |