This plugin is just what I need - except part of what I need to replace in my file is the relative path to the file being processed (for a <script> tag insertion based on the current directory).
Could you provide some config to make this possible?
Note, the processString method
|
ReplaceFilter.prototype.processString = function (string) { |
takes the relativePath as a second parameter, so this doesn't seem too hard to wire up in that location (no change to applause)
This plugin is just what I need - except part of what I need to replace in my file is the relative path to the file being processed (for a
<script>tag insertion based on the current directory).Could you provide some config to make this possible?
Note, the processString method
broccoli-replace/index.js
Line 48 in 08be5ed
takes the relativePath as a second parameter, so this doesn't seem too hard to wire up in that location (no change to applause)