gppfy

1.0.7 • Public • Published

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

GPP preprocessor documentation

Package Sidebar

Install

npm i gppfy

Weekly Downloads

0

Version

1.0.7

License

MIT

Last publish

Collaborators

  • adamansky