You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if it would be possible to rework the replace helper to allow it to be used inline. As it stands, it's very difficult to use. In fact, it's only used in one instance in Cornerstone. If it could be reworked (or a new helper created) to allow for inline use, it would be infinitely more useful!
For example, if the following code: {{replace 'A1x2Bx' 'x' 'b'}} could render out as A1b2Bb, that would give us a lot of control!
The text was updated successfully, but these errors were encountered:
Hi @mattcoy-arcticleaf!
For backward compatibility it's not the best scenario to change the current behaviour of the helper. But on the other hand, a new one, for example str_replace, is good enough and Pull Requests to the repo are welcomed!
I was wondering if it would be possible to rework the replace helper to allow it to be used inline. As it stands, it's very difficult to use. In fact, it's only used in one instance in Cornerstone. If it could be reworked (or a new helper created) to allow for inline use, it would be infinitely more useful!
For example, if the following code:
{{replace 'A1x2Bx' 'x' 'b'}}
could render out asA1b2Bb
, that would give us a lot of control!The text was updated successfully, but these errors were encountered: