preprocess
preprocess copied to clipboard
Preprocess HTML, JavaScript, and other files with directives based off custom or ENV configuration
For example there is the following structure of a project fragment: `dir1` `___file1.inc` `___dir2` `______file.php` How to write in the file.php, to include file.inc?
Because I want flexible custom rules
Is there currently a system which will include a file exactly once? So if this include appears in a file further along the parsing route (either after or inside the...
Is there an option to put a variable in an include? ``` ``` Tried also ``` ``` But it doesn't replace the variable, so it doesn't find the file.
Added support for Pug (Jade)
There seems to be an issue with **@exec** that makes it return undefined and stop parsing if you have multiple on the same line. Here's a (failing) test for it,...
Like I want to process all env comment, and all others context don't do any thing?
multiple conditions with AND relationship I can use Nested `@if `statement, like this: ``` //@if ENV!='dev' //@if ENV!='prod' App.controller('devController', function() {}) //@endif //@endif ``` how to Implement code like `//@if...
This project seems to do exactly what I'd like (or more accurate, `gulp-preprocess` does, which uses this module as its heavy lifter). But is it still being maintained / curated...