I have a piece of javascript that will display a template of html input fields and image.

I am trying to echo the value of $images->icon in the image src. However the value is not echo out. How should I go about doing it?

```
<img class="gc_thumbnail" src="<?php echo base_url('../contentblock_resources_thumb/'.$images->icon);?>" style="padding:5px; border:1px solid #ddd"/>

```

Javascript template

```
<script type="text/template" id="imageTemplate">
            <div class="row gc_photo" id="gc_photo_{{id}}_{{filename}}"
            style=" border-bottom:1px solid #ddd; padding-bottom:20px; margin-bottom:20px;">
                <div class="col-md-2">
                    <img class="gc_thumbnail" src="<?php echo base_url('../contentblock_resources_thumb/'.$images->icon);?>" style="padding:5px; border:1px solid #ddd"/>
                </div>
            </div>
        </script>

```