gppfy
v1.0.7
Published
GPP preprocessor integrated into Browserify
Downloads
26
Readme
GPP preprocessor integrated into Browserify
Use in browserify CLI:
browserify -t [ gppfy -D foo=bar -D foo2=bar2 -i include_macros ] ...
Javascript:
//#ifdef foo
...
//#endif
//#ifeq @foo bar
...
//#endif
var hereIsBar = '@foo'; // hereIsBar === 'foo'
HTML
<!--#ifeq @foo bar -->
...
<!--#endif -->