Comments (7)
Probably not, I think that would make it a little difficult to reason about what the output of the task would be. What is your use case?
Interestingly, because includes are processed after replaces you can do fun stuff like replace a variable with an include directive, but I wouldn't recommend it.
from grunt-include-replace.
The problem is that we use Sphinx to generate our site and we have a subdirectory with an index.html to each subdirectory.
I can specify the subdirectories but it would be much more handy if there was a recursive option.
from grunt-include-replace.
Not sure I understand the problem, could you point me at some code or illustrate it somehow?
from grunt-include-replace.
Imagine this
index.html
foo/index.html
bar/index.html
...
from grunt-include-replace.
Wouldn't a **/index.html
in your src glob reach all of these?
from grunt-include-replace.
Thanks for the suggestion I will try it later when I'm home.
from grunt-include-replace.
@alanshaw: your solution indeed works fine!
I'll close the issue, but perhaps you could put this info in the docs.
from grunt-include-replace.
Related Issues (20)
- Unexpected token error when trying to replace @@sample with html code HOT 4
- Flatten destination output HOT 2
- Argument of include can't have linebreak HOT 1
- Local variables object refering
- access to local variables
- How to replace a file itself ? HOT 1
- Allow undeclared parameters to be defaulted
- Chokes on })
- Make output less verbose
- options.processIncludeContents called when file is processed
- Renaming Generated files HOT 2
- a space before comma make difference
- the file array format processing is very slow HOT 4
- Encoding change HOT 1
- Request: Support for webpack HOT 1
- Project with committed dependencies has a slightly different v3.2.0 HOT 1
- Directory not being created HOT 1
- Reference in multiple steps
- пиксель защита
- Include file(s) not found error on Windows updated Grunt 1.6.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-include-replace.