# I can't send liquid variable value to plugin

**URL:** <https://talk.jekyllrb.com/t/i-cant-send-liquid-variable-value-to-plugin/6734>\
**Category:** Help\
**Created:** [November 26, 2021, 3:49pm UTC](https://talk.jekyllrb.com/t/i-cant-send-liquid-variable-value-to-plugin/6734 "2021-11-26T15:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekofi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ekofi/32/4003_2.png) [@ekofi](https://talk.jekyllrb.com/u/ekofi)\
**Post date:** [November 26, 2021, 3:49pm UTC](https://talk.jekyllrb.com/t/i-cant-send-liquid-variable-value-to-plugin/6734/1 "2021-11-26T15:49:52Z")

</div>

Hi, I created a small plugin:

```auto
module Jekyll
    class RenderImgTag < Liquid::Tag
      def initialize(tag_name, variables, tokens)
        super
        @variables = variables.split(" ", 2)
        @url = @variables[0]
        @alt = @variables[1]
      end
      def render(context)
        "<img src='#{@url}' alt='#{@alt}' />"
      end
    end
  end

 
  Liquid::Template.register_tag('render_img', Jekyll::RenderImgTag)

```

Its mission:

`{% render_img https://exampleimageurl.com "my alt text" %}`

Its working great, but I need to include liquid variable. Like this:

`{% render_img {{post.image.src}} "my alt text" %}`

But its not working. How can I do that?

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [November 26, 2021, 10:03pm UTC](https://talk.jekyllrb.com/t/i-cant-send-liquid-variable-value-to-plugin/6734/2 "2021-11-26T22:03:50Z")

</div>

Possibly you don’t need to quote the variable reference with `{{ }}`? I.e.:

```auto
{% render_img post.image.src "my alt text" %}

```
