Skip to content

Commit

Permalink
Provide examples of Liquid processing of arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
envygeeks committed Nov 17, 2015
1 parent 1d43f82 commit 8c2d7e9
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions README.md
Expand Up @@ -59,12 +59,6 @@ assets:

***You can force digesting with `digest: true` in your `_config.yml`***

## ERB Support

ERB Support is removed in favor of trying to get this included on Github Pages
eventually (if I can.) Having ERB presents a security risk to Github because it
would allow you to use Ruby in ways they don't want you to.

## Tags

* image, img
Expand Down Expand Up @@ -101,6 +95,24 @@ rules for our tags as a specification.
* `sprockets:accept:<value>`
* `sprockets:write_to:<value>`

## Liquid Variables in Arguments

You can use Liquid variables inside of your arguments, but you must quote
them to get them to work, this can be a partial argument quote a full argument
quote or otherwise, it just must be quoted or escaped.

```liquid
{% img '{{ image_path }}' %}
{% img '{{ image_path }}' proxy:key:'{{ value }}' %}
{% img {{\ image_path\ }} %}
```

## ERB Support

ERB Support is removed in favor of trying to get this included on Github Pages
eventually (if I can.) Having ERB presents a security risk to Github because it
would allow you to use Ruby in ways they don't want you to.

## Filters

There is a full suite of filters, actually, any tag and any proxy can be a
Expand Down

0 comments on commit 8c2d7e9

Please sign in to comment.