x-tag's mixin to handle string template