broccoli-replace icon indicating copy to clipboard operation
broccoli-replace copied to clipboard

Replacement happens only once

Open bekharsky opened this issue 8 years ago • 4 comments

I try to use broccoli-replace as some kind of a template engine (to replace @@include with partial HTML content).

But I cannot use it like that because replacement happens only once. On the initial build. How can I fix that?

bekharsky avatar Oct 13 '17 20:10 bekharsky

I have this problem too. Even the regular expression method only replaces on the first match.

buzzware avatar Jan 08 '19 09:01 buzzware

Hi guys, could you share your brofiles? so I can see to help you?

outaTiME avatar Mar 04 '21 15:03 outaTiME

Oh, what a blast from the past :) My brocfile is https://github.com/bekharsky/brocfile/blob/master/Brocfile.js but I don't have broccoli-replace here... I'll recreate example with broccoli-replace, I have this in one of my old projects...

Don't get me wrong about "blast from the past". I love to see that broccoli and that project are both alive and I'll try to create reproducible example ASAP.

bekharsky avatar Mar 04 '21 18:03 bekharsky

I had a lot of work the last time and it was difficult to take some time to update the project and its dependencies, it would be very useful if you could make a reproducible example since broccoli is used a lot by the ember community, thanks !!!

outaTiME avatar Mar 04 '21 18:03 outaTiME