I assume you are talking about this module : https://www.npmjs.org/package/preprocess
I've updated and published 2.1.0 to accommodate unwrapped directives (when used as a library). The slashes (and other formats) are there to keep the files parsable by their destination environments regardless of whether or not they have been preprocessed. -- Jarrod Overson tw <https://twitter.com/jsoverson> | gh <http://github.com/jsoverson> | g+ <http://profiles.google.com/jsoverson> | li <http://jarrodoverson.com/linkedin> On Tue, Oct 28, 2014 at 3:19 AM, Kevin Ingwersen (Ingwie Phoenix) < [email protected]> wrote: > I am currently looking into using oj, a Objective-C like syntax for JS. > Why I didn't use Objective-J? Its not nodejs-friendly. > > But oj lacks a preprocessor...but I need one. Actually, I only need one > thing: #include. > > I went and browsed npm, but I only found one preprocessor, but it required > slashes - which does not look very clean to me. The one I found wanted me > to do: > > // #ifdef A > ... > // #endif > > I just want do something like > > #include <file> > > or > > #ifdef A > ... > #endif > > If I can't find one, I'll just write my own...but it's a bit sad. > > Does anyone know a proper, javascript-based preprocessor? I want to use it > in a middleware and preprocess the file, before giving it to oj. > > Kind regards, Ingwie > > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/A3D61862-4B72-4487-9C99-D7DED8ED923E%40googlemail.com > . > For more options, visit https://groups.google.com/d/optout. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAJoBgEg4D7nyvRLos-xK%3DMww3c3Rew9fWsM%3DfST1%2B5ORQr__tw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
