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