jsoverson / preprocess

Preprocess HTML, JavaScript, and other files with directives based off custom or ENV configuration
Other
366 stars 80 forks source link

Allow nesting of conditional statements #90

Open EyMaddis opened 9 years ago

EyMaddis commented 9 years ago

I noticed that nesting multiple IF-Statements is not supported and since I have to handle multiple target platforms while also checking for environment variables (like production mode) nesting support would help a whole lot. Right know I have to have unnecessary code duplications in my files and other workarounds.

Thanks

Frizi commented 9 years ago

First nested directives support was added in 9644439ba48262e89c027fbe9d63f8292efd954e, and later a few fixes were added to it. All of that landed in 3.0.0. Neting should work out of the box. Make sure you are using current version of the tool.

zwacky commented 7 years ago

I ran into the same thing as well, using preprocess 3.1.0.