Coder Social home page Coder Social logo

Comments (7)

alanshaw avatar alanshaw commented on June 17, 2024

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.

XhmikosR avatar XhmikosR commented on June 17, 2024

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.

alanshaw avatar alanshaw commented on June 17, 2024

Not sure I understand the problem, could you point me at some code or illustrate it somehow?

from grunt-include-replace.

XhmikosR avatar XhmikosR commented on June 17, 2024

Imagine this

index.html
foo/index.html
bar/index.html
...

from grunt-include-replace.

alanshaw avatar alanshaw commented on June 17, 2024

Wouldn't a **/index.html in your src glob reach all of these?

from grunt-include-replace.

XhmikosR avatar XhmikosR commented on June 17, 2024

Thanks for the suggestion I will try it later when I'm home.

from grunt-include-replace.

XhmikosR avatar XhmikosR commented on June 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.