# Stache binding within attribute

**URL:** <https://forums.bitovi.com/t/stache-binding-within-attribute/808>\
**Category:** CanJS\
**Created:** [February 10, 2018, 6:29am UTC](https://forums.bitovi.com/t/stache-binding-within-attribute/808 "2018-02-10T06:29:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [February 10, 2018, 6:29am UTC](https://forums.bitovi.com/t/stache-binding-within-attribute/808/1 "2018-02-10T06:29:53Z")

</div>

I have bindings such as `<div class="other-class {{test}}" />"`. This seems to still be working but there is a warning in the console: `can-stache/expressions/helper.js: Unable to find helper \"test\"`.

I have created an [example](https://jsbin.com/lifuwoq/edit?html,js,console,output). The `div` contains the correct output but there is still the warning. Should I implement this in some other way? Perhaps an attribute on the model that returns the composed values?

---

<div class="post-metadata">

**Author:** ![justinbmeyer](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/justinbmeyer/32/179_2.png) [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Post date:** [February 10, 2018, 2:18pm UTC](https://forums.bitovi.com/t/stache-binding-within-attribute/808/2 "2018-02-10T14:18:01Z")

</div>

This is fine. The warning is a bug. Can you create an issue?

---

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [February 10, 2018, 2:45pm UTC](https://forums.bitovi.com/t/stache-binding-within-attribute/808/3 "2018-02-10T14:45:13Z")

</div>

Thanks for the feedback Justin. I have created an [issue](https://github.com/canjs/can-stache-bindings/issues/429).
